Commit 3dbee58b authored by Yuri Mikhin's avatar Yuri Mikhin Committed by Yuri Mikhin

Fix responsive inf AppList.

parent ec18fc41
......@@ -8,15 +8,16 @@ const AppCard = ({ title, logo, shortDescription, categories }: AppItemPreview)
return (
<Box
borderRadius={{ base: 'none', sm: 'md' }}
height="100%"
padding={{ base: '16px', md: '20px' }}
padding={{ base: '16px', sm: '20px' }}
boxShadow={ `0 0 0 1px ${ useColorModeValue('var(--chakra-colors-gray-200)', 'var(--chakra-colors-gray-600)') }` }
>
<Box overflow="hidden" height="100%">
<Box
marginBottom={ 4 }
w={{ base: '64px', lg: '96px' }}
h={{ base: '64px', lg: '96px' }}
w={{ base: '64px', sm: '96px' }}
h={{ base: '64px', sm: '96px' }}
>
<Image
src={ logo }
......@@ -27,7 +28,7 @@ const AppCard = ({ title, logo, shortDescription, categories }: AppItemPreview)
<Text
as="h3"
marginBottom={ 2 }
fontSize={{ base: 'sm', lg: 'lg' }}
fontSize={{ base: 'sm', sm: 'sm' }}
fontWeight="semibold"
>
{ title }
......@@ -42,7 +43,7 @@ const AppCard = ({ title, logo, shortDescription, categories }: AppItemPreview)
</Text>
<Text
fontSize={{ base: 'xs', lg: 'sm' }}
fontSize={{ base: 'xs', sm: 'sm' }}
lineHeight="20px"
style={{
display: '-webkit-box',
......
......@@ -19,11 +19,12 @@ const AppList = ({ apps }: Props) => {
{ apps.length > 0 ? (
<Grid
templateColumns={{
base: 'repeat(auto-fill, minmax(140px, 1fr))',
base: 'repeat(auto-fill, minmax(160px, 1fr))',
sm: 'repeat(auto-fill, minmax(200px, 1fr))',
lg: 'repeat(auto-fill, minmax(260px, 1fr))',
}}
autoRows="1fr"
gap={{ base: '1px', lg: '24px' }}
gap={{ base: '1px', sm: '24px' }}
>
{ apps.map((app) => (
<GridItem
......@@ -54,7 +55,7 @@ const AppList = ({ apps }: Props) => {
<Text
as="h3"
marginBottom={ 2 }
fontSize={{ base: '2xl', lg: '3xl' }}
fontSize={{ base: '2xl', sm: '3xl' }}
fontWeight="semibold"
>
No results
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment