feat: sticky sandbox

This commit is contained in:
TrèsAbhi committed 2024-01-27 13:53:19 -06:00
1 parent 9ba239caf0
commit f820d05082
3 files changed
+175 -121

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ import { ComponentProps } from 'react';
interface PageWrapperProps extends ComponentProps<typeof Flex> {
color?: ComponentProps<typeof Theme>['accentColor'];
size?: 'regular' | 'wide';
size?: 'regular' | 'wide' | 'full';
}
export default function PageWrapper({
@@ -19,7 +19,7 @@ export default function PageWrapper({
gap="4"
style={{
width: '100%',
maxWidth: size === 'regular' ? 800 : 960,
maxWidth: size === 'regular' ? 800 : size === 'full' ? '100%' : 960,
margin: 'auto',
padding: 16,
boxSizing: 'border-box',