Skip to content

Commit 8f1d423

Browse files
committed
fix: side-by-side table column may be too narrow
Signed-off-by: Jack Cherng <[email protected]>
1 parent 8453818 commit 8f1d423

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

example/diff-table.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@
9090
background-size: calc(var(--tab-size) * 1ch) 1.25em;
9191
background-position: 2px center;
9292
}
93+
.diff-wrapper.diff.diff-html.diff-side-by-side td.old, .diff-wrapper.diff.diff-html.diff-side-by-side td.new {
94+
width: 45%;
95+
}
9396
.diff-wrapper.diff.diff-html.diff-combined .change.change-rep .rep {
9497
white-space: normal;
9598
}

example/diff-table.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ $img-tab: 'data:image/svg+xml,%3Csvg preserveAspectRatio="xMinYMid meet" viewBox
146146
}
147147
}
148148

149+
&.diff-side-by-side {
150+
td {
151+
&.old,
152+
&.new {
153+
width: 45%;
154+
}
155+
}
156+
}
157+
149158
&.diff-combined {
150159
.change.change-rep {
151160
.rep {

0 commit comments

Comments
 (0)