Backport #31341 by silverwind
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
padding: 0 8px;
text-align: right !important;
color: var(--color-text-light-2);
+ width: 1%; /* this apparently needs to be a percentage so that code column stretches in diffs */
+ min-width: 72px;
+ white-space: nowrap;
+}
+
+.code-diff .lines-num {
+ min-width: 50px;
}
.lines-num span.bottom-line::after {
.lines-type-marker {
vertical-align: top;
+ white-space: nowrap;
}
.lines-num,
.lines-escape {
width: 0;
+ white-space: nowrap;
}
.lines-code {
.repository .diff-file-box .file-body.file-code .lines-num {
text-align: right;
- width: 1%;
- min-width: 50px;
}
.repository .diff-file-box .file-body.file-code .lines-num span.fold {
table-layout: fixed;
}
-.repository .diff-file-box .code-diff tbody tr td.lines-num,
-.repository .diff-file-box .code-diff tbody tr td.lines-escape,
-.repository .diff-file-box .code-diff tbody tr td.lines-type-marker {
- white-space: nowrap;
-}
-
.repository .diff-file-box .code-diff tbody tr td.center {
text-align: center;
}