Skip to content

Commit 551a0b4

Browse files
authored
Merge pull request #482 from grimsteel/patch-1
Precise widths for `code-line` and `code-side-line`
2 parents 09cbe87 + 32239a0 commit 551a0b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ui/css/diff2html.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
display: inline-block;
125125
white-space: nowrap;
126126
user-select: none;
127-
width: 100%;
127+
width: calc(100% - 16em);
128128
/* Compensate for the absolute positioning of the line numbers */
129129
padding: 0 8em;
130130
}
@@ -133,7 +133,7 @@
133133
display: inline-block;
134134
white-space: nowrap;
135135
user-select: none;
136-
width: auto;
136+
width: calc(100% - 9em);
137137
/* Compensate for the absolute positioning of the line numbers */
138138
padding: 0 4.5em;
139139
}

0 commit comments

Comments
 (0)