Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
fix(style): on mobile, main content can scroll up beyond header
Browse files Browse the repository at this point in the history
  • Loading branch information
aiktb committed Oct 23, 2024
1 parent 058a958 commit c0d0a2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export default function Index() {
const ast = parse(code);

return (
<div className="relative h-screen">
<Header className="sticky top-0 z-20 h-12 w-full" />
<main className="h-[calc(100%-48px)] overflow-scroll">
<div className="relative grid h-dvh grid-rows-[3rem,_1fr]">
<Header className="sticky top-0 z-20 w-full" />
<main className="overflow-scroll">
<ResizablePanelGroup direction="horizontal" className="w-full overflow-scroll">
<ResizablePanel defaultSize={50}>
<div className="h-full items-center justify-center p-6">
Expand Down

0 comments on commit c0d0a2a

Please sign in to comment.