Skip to content

Commit 48e91fe

Browse files
committed
fix mobile display
1 parent c99fd22 commit 48e91fe

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

theme/components/Drawer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const baseStyleDialog = defineStyle((props) => {
2727
...transitionProps,
2828
zIndex: 'modal',
2929
maxH: '100vh',
30-
bg: mode('white', 'gray.900')(props),
30+
bg: mode('white', '#1a1a1a')(props),
3131
color: 'inherit',
3232
boxShadow: mode('lg', 'dark-lg')(props),
3333
};

theme/foundations/breakpoints.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const breakpoints = {
22
// maybe we need them in future
3+
xs: '300px',
34
sm: '415px',
45
// md: '768px',
56
lg: '1000px',

ui/shared/layout/components/Container.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Container = ({ children, className }: Props) => {
1010
return (
1111
<Box
1212
className={ className }
13-
minWidth={{ base: '100vw', lg: 'fit-content' }}
13+
minWidth={{ base: '100%', lg: 'fit-content' }}
1414
m="0 auto"
1515
bgColor="black"
1616
>

ui/snippets/footer/Footer.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const Footer = () => {
8383
.map(linkGroup => (
8484
<Box key={ linkGroup.title }>
8585
<Skeleton fontWeight={ 500 } mb={ 3 } display="inline-block" isLoaded={ !isPlaceholderData }>{ linkGroup.title }</Skeleton>
86-
<VStack spacing={ 1 } alignItems="start">
86+
<VStack spacing={ 1 } alignItems="start" flexDirection={{ lg: 'row', sm: 'column', xs: 'column' }}>
8787
{ linkGroup.links.map(link => <FooterLinkItem { ...link } key={ link.text } isLoading={ isPlaceholderData }/>) }
8888
</VStack>
8989
</Box>
@@ -116,6 +116,7 @@ const Footer = () => {
116116
justifyContent={{ lg: 'flex-end' }}
117117
gap={ 8 }
118118
mt={{ base: 8, lg: 0 }}
119+
flexDirection={{ lg: 'row', sm: 'column', xs: 'column' }}
119120
>
120121
{ BLOCKSCOUT_LINKS.map(link => <FooterLinkItem { ...link } key={ link.text }/>) }
121122
</Grid>

0 commit comments

Comments
 (0)