fix: place page scrollbar on the left

This commit is contained in:
2026-08-21 07:57:16 +08:00
parent 8bb407cad7
commit 00ddf5d26c
2 changed files with 13 additions and 2 deletions

View File

@@ -109,17 +109,28 @@
} }
html { html {
background: var(--canvas); background: var(--canvas);
direction: rtl;
height: 100%;
overflow: hidden;
} }
body { body {
margin: 0; margin: 0;
min-width: 320px; min-width: 320px;
min-height: 100vh; height: 100%;
overflow: hidden;
direction: rtl;
background: var(--canvas); background: var(--canvas);
color: var(--text); color: var(--text);
font-family: 'IRANYekanX', Tahoma, sans-serif; font-family: 'IRANYekanX', Tahoma, sans-serif;
font-size: 15px; font-size: 15px;
line-height: 1.8; line-height: 1.8;
} }
#app-scroll-root {
height: 100%;
overflow-x: hidden;
overflow-y: auto;
direction: rtl;
}
button, button,
input, input,
select { select {

View File

@@ -18,6 +18,6 @@
%sveltekit.head% %sveltekit.head%
</head> </head>
<body data-sveltekit-preload-data="hover"> <body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div> <div id="app-scroll-root">%sveltekit.body%</div>
</body> </body>
</html> </html>