From bd168df352e5e0e97cc7a7a8788c0ac822310992 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Thu, 30 Oct 2025 18:22:42 +0100 Subject: [PATCH] style(layout): fix header sticky style(layout): fix unnecessary scroll --- apps/client/app/app.css | 5 +++++ apps/client/app/components/grid-background.tsx | 2 +- apps/client/app/components/layout.tsx | 16 +++++++++------- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/apps/client/app/app.css b/apps/client/app/app.css index 8e06eb4..26af738 100644 --- a/apps/client/app/app.css +++ b/apps/client/app/app.css @@ -24,6 +24,11 @@ body { } } +.main-content { + scrollbar-width: thin; + scrollbar-gutter: stable; +} + @theme inline { --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); diff --git a/apps/client/app/components/grid-background.tsx b/apps/client/app/components/grid-background.tsx index 5d4c687..945cedb 100644 --- a/apps/client/app/components/grid-background.tsx +++ b/apps/client/app/components/grid-background.tsx @@ -11,7 +11,7 @@ export function GridBackground({ children, className, containerClassName }: Grid return (
-
-
+
+
@@ -69,11 +69,13 @@ export default function Layout({ loaderData }: Route.ComponentProps) { )}
- -
- -
-
+
+ +
+ +
+
+
);