Skip to content

Commit f6b46cb

Browse files
committed
Fix blank space glitch in scrolling diffs
1 parent d3e961d commit f6b46cb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/css/unison-share/page/project-contribution-changes-page.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,6 @@
254254

255255
& .diff-side {
256256
width: 50%;
257-
overflow-x: auto;
258-
/* TODO: yikes, well that seems like a hack */
259-
overflow-y: hidden;
260257

261258
& header {
262259
background: var(--u-color_element_subdued);
@@ -274,6 +271,12 @@
274271

275272
& code {
276273
width: 100%;
274+
display: flex;
275+
overflow-x: auto;
276+
}
277+
278+
& code > div {
279+
width: max-content;
277280
}
278281
}
279282

@@ -348,6 +351,8 @@
348351
}
349352

350353
& .gutter {
354+
position: sticky;
355+
left: 0;
351356
background: var(--u-color_element_subdued);
352357
color: var(--u-color_text_very-subdued);
353358
border-right: 1px solid var(--u-color_border_subdued);

0 commit comments

Comments
 (0)