Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function Navbar({ children }: { children: React.ReactNode }) {
const updateContainerHeight = () => {
if (containerRef.current) {
const height = containerRef.current.offsetHeight
document.body.style.setProperty('--navbar-height', `${height}px`)
document.documentElement.style.setProperty('--navbar-height', `${height}px`)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function HtmlWrapper({ children }: { children: React.ReactNode }) {
) : null}
<GamScripts />
</head>
<body style={{ '--navbar-height': '48px' } as any}>
<body>
<ToastProvider>
<BackgroundGradient />
<React.Suspense fallback={null}>
Expand Down
5 changes: 5 additions & 0 deletions src/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
::file-selector-button {
border-color: var(--color-gray-200, currentcolor);
}

:root {
--navbar-height: 50px;
scroll-padding-top: var(--navbar-height);
}
}

button {
Expand Down
Loading