Use a stable scroll gutter
Prevent horizontal page shifts when switching tabs due to the scrollbar changing visibility.
This commit is contained in:
parent
6ef3800a53
commit
bfb9acaa78
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
:root {
|
||||
scrollbar-gutter: stable both-edges;
|
||||
--background: #ffffff;
|
||||
--foreground: #171717;
|
||||
}
|
||||
|
@ -11,7 +12,7 @@
|
|||
}
|
||||
|
||||
body {
|
||||
padding-inline: 1rem;
|
||||
padding-inline: 0.3rem;
|
||||
color: var(--foreground);
|
||||
background: var(--background);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue