feat: sticky

This commit is contained in:
TrèsAbhi committed 2024-06-21 18:26:49 -05:00
1 parent a57734cdee
commit c8e207b6a2
2 files changed
+49 -35

No files matched your search

+9
View File
@@ -6,6 +6,7 @@ import { times } from 'lodash';
import { use } from 'react';
import { classIcons } from '../../../components/ClassIcon';
import { ExperimentIcon } from '../../../components/ExperimentIcon';
import { NAVBAR_HEIGHT } from '../../../components/Navbar';
import PageWrapper from '../../../components/PageWrapper';
import { ResearchedIcon } from '../../../components/ResearchedIcon';
import { ScienceIcon } from '../../../components/ScienceIcon';
@@ -44,6 +45,7 @@ export default function Page() {
initial: 'row',
sm: 'column',
}}
height="fit-content"
gap="2"
align={{
initial: 'start',
@@ -53,6 +55,13 @@ export default function Page() {
initial: 'center',
sm: 'start',
}}
position={{
initial: 'static',
sm: 'sticky',
}}
style={{
top: `calc(${NAVBAR_HEIGHT}px + var(--space-3))`,
}}
>
<Flex
direction={{