Skip to content

Commit

Permalink
Merge pull request #205 from ky-zo/layout-fix
Browse files Browse the repository at this point in the history
fix: remove annoying scrolling behaviour for empty project by setting correct layout components heights
  • Loading branch information
pkarw authored Oct 7, 2024
2 parents efcff3a + 146fbb6 commit 2159cde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function FolderPad() {
<FolderContextProvider>
<RecordContextProvider>
<KeyContextProvider>
<div>
<div className="flex flex-col min-h-[100svh]">
<TopHeader />
<TermsPopup />
<RecordsWrapper />
Expand Down
2 changes: 1 addition & 1 deletion src/components/records-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function RecordsWrapper({}) {
}, [folderContext?.currentFolder/*, documentVisible*/]);

return (
<div className="grid min-h-screen w-full bg-zinc-100 dark:bg-zinc-950">
<div className="grid grow w-full bg-zinc-100 dark:bg-zinc-950">
<div className="md:p-4 xs:p-0">
{ (folderContext?.currentFolder !== null) ? (
<div>
Expand Down

0 comments on commit 2159cde

Please sign in to comment.