Skip to content

Commit 2212cd7

Browse files
authored
Fixed Notes page height issue (#950)
* Update notes.tsx * Update root.tsx
1 parent f48ec68 commit 2212cd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function App() {
219219
</nav>
220220
</header>
221221

222-
<div className="flex-1">
222+
<div className="flex-1 flex flex-col">
223223
<Outlet />
224224
</div>
225225

app/routes/users+/$username_+/notes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function NotesRoute({ loaderData }: Route.ComponentProps) {
3232
const navLinkDefaultClassName =
3333
'line-clamp-2 block rounded-l-full py-2 pl-8 pr-6 text-base lg:text-xl'
3434
return (
35-
<main className="container flex h-full min-h-[400px] px-0 pb-12 md:px-8">
35+
<main className="container flex flex-1 min-h-[400px] px-0 pb-12 md:px-8">
3636
<div className="grid w-full grid-cols-4 bg-muted pl-2 md:container md:rounded-3xl md:pr-0">
3737
<div className="relative col-span-1">
3838
<div className="absolute inset-0 flex flex-col">

0 commit comments

Comments
 (0)