Skip to content

Commit 8bba7e3

Browse files
authored
webview: Fix overflowing diff body (#22959)
If the content is quite large the diff body overflows the container and can not be read. This is fixed by setting the diff body maximum width to 100% and enable overflow scrollbars: before | after ---|--- ![Screenshot_20230217_184716](https://user-images.githubusercontent.com/1855448/219733934-75bec38c-7cfe-47bb-b001-b090c02b769e.png) | ![Screenshot_20230217_184655](https://user-images.githubusercontent.com/1855448/219733971-4db092d1-ffcb-4298-a640-f740a3ac430b.png) Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent e7ef94e commit 8bba7e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web_src/less/_repository.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3187,6 +3187,7 @@ td.blob-excerpt {
31873187
}
31883188
#diff-file-boxes {
31893189
flex: 1;
3190+
max-width: 100%;
31903191
}
31913192

31923193
#diff-file-tree {
@@ -3295,6 +3296,10 @@ td.blob-excerpt {
32953296
}
32963297
}
32973298

3299+
.diff-file-body {
3300+
overflow-x: scroll;
3301+
}
3302+
32983303
.diff-stats-bar {
32993304
display: inline-block;
33003305
background-color: var(--color-red);

0 commit comments

Comments
 (0)