mirror of
https://codeberg.org/Tilo-K/diff-highlighter.git
synced 2026-07-03 08:13:02 +00:00
fix vertical scroll
This commit is contained in:
@@ -1,10 +1,19 @@
|
|||||||
/* Diff layout + line colors. Everything is scoped under `pre.dh-on` so toggling
|
/* Diff layout + line colors. Everything is scoped under `pre.dh-on` so toggling
|
||||||
the extension off (which removes that class) fully restores the plain view. */
|
the extension off (which removes that class) fully restores the plain view. */
|
||||||
|
|
||||||
|
/* Chrome's text/plain body has margin: 8px by default. Zero it out so the pre
|
||||||
|
fills the viewport exactly — no margin overflow, no phantom scrollbar. */
|
||||||
|
body:has(pre.dh-on) {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
pre.dh-on {
|
pre.dh-on {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
min-height: 100vh;
|
/* overflow-x: auto keeps long lines scrollable within the pre itself rather
|
||||||
|
than spilling to the page and causing a page-level horizontal scrollbar. */
|
||||||
|
overflow-x: auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
tab-size: 4;
|
tab-size: 4;
|
||||||
font: 12px/1.5 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
|
font: 12px/1.5 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
|
||||||
|
|||||||
Reference in New Issue
Block a user