Skip to content

Commit 53da3db

Browse files
ui: Set footer to stick to viewport bottom (#48)
1 parent 0c6f12d commit 53da3db

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export default function RootLayout({
2323
return (
2424
<html lang='en'>
2525
<body className={inter.className}>
26-
<div className='min-h-screen bg-white'>
26+
<div className='flex min-h-screen flex-col bg-white'>
2727
<Header />
28-
<main>{children}</main>
28+
<main className='flex grow flex-col'>{children}</main>
2929
<Toaster richColors position='bottom-center' />
3030
<Footer />
3131
</div>

components/student-group/StudentGroups.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function StudentGroups({ orgs }: StudentGroupsProps) {
8383
const totalPages = Math.ceil(igCardsToDisplay.length / PAGE_SIZE);
8484

8585
return (
86-
<div className='relative flex'>
86+
<div className='relative flex flex-1'>
8787
{orgs.length === 0 && (
8888
<div className='bg-opacity-60 absolute inset-0 z-50 flex items-center justify-center bg-white'>
8989
<div className='h-24 w-24'>

0 commit comments

Comments
 (0)