Skip to content

Commit

Permalink
Fix #6: correctly set overflow and color-scheme property
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Dec 22, 2024
1 parent 56c0719 commit a62fcd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function App() {
<div class="flex h-screen select-none flex-col">
<ToastContainer />
<Dropper />
<main class="w-full grow overflow-scroll">
<main class="w-full grow overflow-hidden">
<Table />
</main>
<BottomBar />
Expand Down
5 changes: 2 additions & 3 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
--color-theme-secondary: #e9e9e9;
--color-theme-accent: #dedede;
--color-theme-text-primary: #0f0f0f;
color-scheme: light;
@media (prefers-color-scheme: dark) {
color-scheme: dark;
--color-theme-primary: #1b1b1b;
--color-theme-secondary: #242424;
--color-theme-accent: #3d3d3d;
Expand Down Expand Up @@ -45,10 +47,7 @@ html {
}

body {
overscroll-behavior-y: none;
height: 100%;
overflow: auto;
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.frost {
Expand Down

0 comments on commit a62fcd6

Please sign in to comment.