fix breakpoints

This commit is contained in:
Samuel Newman
2024-12-04 18:17:56 +00:00
parent 4669e66e07
commit 0bd55e2562
+2 -2
View File
@@ -25,6 +25,7 @@ const BUTTON_SIZE = 34 // small button
export function Outer({children}: {children: React.ReactNode}) { export function Outer({children}: {children: React.ReactNode}) {
const t = useTheme() const t = useTheme()
const gutter = useGutterStyles() const gutter = useGutterStyles()
const {gtMobile} = useBreakpoints()
return ( return (
<View <View
@@ -37,8 +38,7 @@ export function Outer({children}: {children: React.ReactNode}) {
gutter, gutter,
a.py_sm, a.py_sm,
t.atoms.border_contrast_low, t.atoms.border_contrast_low,
a.mx_auto, gtMobile && [a.mx_auto, {maxWidth: 600}],
{maxWidth: 600},
]}> ]}>
{children} {children}
</View> </View>