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) ...@@ -8,15 +8,16 @@ const AppCard = ({ title, logo, shortDescription, categories }: AppItemPreview)
return ( return (
<Box <Box
borderRadius={{ base: 'none', sm: 'md' }}
height="100%" 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)') }` } boxShadow={ `0 0 0 1px ${ useColorModeValue('var(--chakra-colors-gray-200)', 'var(--chakra-colors-gray-600)') }` }
> >
<Box overflow="hidden" height="100%"> <Box overflow="hidden" height="100%">
<Box <Box
marginBottom={ 4 } marginBottom={ 4 }
w={{ base: '64px', lg: '96px' }} w={{ base: '64px', sm: '96px' }}
h={{ base: '64px', lg: '96px' }} h={{ base: '64px', sm: '96px' }}
> >
<Image <Image
src={ logo } src={ logo }
...@@ -27,7 +28,7 @@ const AppCard = ({ title, logo, shortDescription, categories }: AppItemPreview) ...@@ -27,7 +28,7 @@ const AppCard = ({ title, logo, shortDescription, categories }: AppItemPreview)
<Text <Text
as="h3" as="h3"
marginBottom={ 2 } marginBottom={ 2 }
fontSize={{ base: 'sm', lg: 'lg' }} fontSize={{ base: 'sm', sm: 'sm' }}
fontWeight="semibold" fontWeight="semibold"
> >
{ title } { title }
...@@ -42,7 +43,7 @@ const AppCard = ({ title, logo, shortDescription, categories }: AppItemPreview) ...@@ -42,7 +43,7 @@ const AppCard = ({ title, logo, shortDescription, categories }: AppItemPreview)
</Text> </Text>
<Text <Text
fontSize={{ base: 'xs', lg: 'sm' }} fontSize={{ base: 'xs', sm: 'sm' }}
lineHeight="20px" lineHeight="20px"
style={{ style={{
display: '-webkit-box', display: '-webkit-box',
......
...@@ -19,11 +19,12 @@ const AppList = ({ apps }: Props) => { ...@@ -19,11 +19,12 @@ const AppList = ({ apps }: Props) => {
{ apps.length > 0 ? ( { apps.length > 0 ? (
<Grid <Grid
templateColumns={{ 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))', lg: 'repeat(auto-fill, minmax(260px, 1fr))',
}} }}
autoRows="1fr" autoRows="1fr"
gap={{ base: '1px', lg: '24px' }} gap={{ base: '1px', sm: '24px' }}
> >
{ apps.map((app) => ( { apps.map((app) => (
<GridItem <GridItem
...@@ -54,7 +55,7 @@ const AppList = ({ apps }: Props) => { ...@@ -54,7 +55,7 @@ const AppList = ({ apps }: Props) => {
<Text <Text
as="h3" as="h3"
marginBottom={ 2 } marginBottom={ 2 }
fontSize={{ base: '2xl', lg: '3xl' }} fontSize={{ base: '2xl', sm: '3xl' }}
fontWeight="semibold" fontWeight="semibold"
> >
No results 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