enhance: truncate but show long lines in diffs (#39279)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Sergio Benitez
2026-09-12 13:56:25 +02:00
committed by GitHub
parent da37b7916b
commit 1e13badb39
13 changed files with 430 additions and 222 deletions
+11
View File
@@ -686,6 +686,17 @@ overflow-menu .ui.label:empty {
line-height: inherit; /* needed for inline code preview in markup */
}
.code-inner:has(.diff-line-truncated) {
text-decoration: underline dashed 1px;
text-underline-offset: 4px;
}
.code-inner .diff-line-truncated {
margin-left: var(--gap-inline);
padding: 0 4px;
user-select: none;
}
.blame .code-inner {
white-space: pre-wrap;
overflow-wrap: anywhere;