mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-18 19:36:13 +01:00
feat: sticky
This commit is contained in:
1 parent
a57734cdee
commit
c8e207b6a2
2 files changed
+49
-35
No files matched your search
@@ -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={{
|
||||
|
||||
Reference in new issue
Block a user