Skip to content

Commit

Permalink
fix: レイアウトの構造を変更してヘッダーのスタイルを調整
Browse files Browse the repository at this point in the history
  • Loading branch information
namidapoo committed Dec 29, 2024
1 parent ce7c7bf commit 68f47c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ const RootLayout: FC<Readonly<Props>> = ({ children }) => {
enableSystem
disableTransitionOnChange
>
<Header />
<div className="h-[calc(100dvh-64px)] p-4 md:px-6">{children}</div>
<div className="flex flex-col h-dvh">
<Header />
<div className="flex-grow p-4 md:px-6 overflow-auto">
{children}
</div>
</div>
</ThemeProvider>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion app/recap/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Header: FC = () => {
<SessionProvider>
<header
className={cn(
"flex h-16 items-center justify-between sticky top-0 z-10 bg-background shadow-md dark:shadow-current px-6",
"flex h-16 items-center justify-between bg-background border-b dark:shadow-current p-6",
isOnTop && "hidden",
)}
>
Expand Down

0 comments on commit 68f47c9

Please sign in to comment.