Commit 905ee284 authored by Max Alekseenko's avatar Max Alekseenko

display cards from md screen size

parent 70bc577d
...@@ -64,7 +64,7 @@ const MarketplaceAppCard = ({ ...@@ -64,7 +64,7 @@ const MarketplaceAppCard = ({
boxShadow: isLoading ? 'none' : 'md', boxShadow: isLoading ? 'none' : 'md',
}} }}
borderRadius="md" borderRadius="md"
padding={{ base: 3, sm: '20px' }} padding={{ base: 3, md: '20px' }}
border="1px" border="1px"
borderColor={ useColorModeValue('gray.200', 'gray.600') } borderColor={ useColorModeValue('gray.200', 'gray.600') }
role="group" role="group"
...@@ -76,17 +76,17 @@ const MarketplaceAppCard = ({ ...@@ -76,17 +76,17 @@ const MarketplaceAppCard = ({
gap={ 2 } gap={ 2 }
> >
<Flex <Flex
display={{ base: 'flex', sm: 'contents' }} display={{ base: 'flex', md: 'contents' }}
gap={ 4 } gap={ 4 }
> >
<Skeleton <Skeleton
isLoaded={ !isLoading } isLoaded={ !isLoading }
w={{ base: '64px', sm: '96px' }} w={{ base: '64px', md: '96px' }}
h={{ base: '64px', sm: '96px' }} h={{ base: '64px', md: '96px' }}
display="flex" display="flex"
alignItems="center" alignItems="center"
justifyContent="center" justifyContent="center"
mb={{ base: 0, sm: 2 }} mb={{ base: 0, md: 2 }}
> >
<Image <Image
src={ isLoading ? undefined : logoUrl } src={ isLoading ? undefined : logoUrl }
...@@ -96,16 +96,16 @@ const MarketplaceAppCard = ({ ...@@ -96,16 +96,16 @@ const MarketplaceAppCard = ({
</Skeleton> </Skeleton>
<Flex <Flex
display={{ base: 'flex', sm: 'contents' }} display={{ base: 'flex', md: 'contents' }}
flexDirection="column" flexDirection="column"
gap={ 2 } gap={ 2 }
pt={ 1 } pt={ 1 }
> >
<Skeleton <Skeleton
isLoaded={ !isLoading } isLoaded={ !isLoading }
fontSize={{ base: 'sm', sm: 'lg' }} fontSize={{ base: 'sm', md: 'lg' }}
lineHeight={{ base: '20px', sm: '28px' }} lineHeight={{ base: '20px', md: '28px' }}
paddingRight={{ base: '40px', sm: 0 }} paddingRight={{ base: '40px', md: 0 }}
fontWeight="semibold" fontWeight="semibold"
fontFamily="heading" fontFamily="heading"
display="inline-block" display="inline-block"
...@@ -135,7 +135,7 @@ const MarketplaceAppCard = ({ ...@@ -135,7 +135,7 @@ const MarketplaceAppCard = ({
isLoaded={ !isLoading } isLoaded={ !isLoading }
fontSize="sm" fontSize="sm"
lineHeight="20px" lineHeight="20px"
noOfLines={{ base: 2, sm: 3 }} noOfLines={{ base: 2, md: 3 }}
> >
{ shortDescription } { shortDescription }
</Skeleton> </Skeleton>
...@@ -150,7 +150,7 @@ const MarketplaceAppCard = ({ ...@@ -150,7 +150,7 @@ const MarketplaceAppCard = ({
<Link <Link
fontSize="sm" fontSize="sm"
fontWeight="500" fontWeight="500"
paddingRight={{ sm: 2 }} paddingRight={{ md: 2 }}
href="#" href="#"
onClick={ handleInfoClick } onClick={ handleInfoClick }
> >
...@@ -161,8 +161,8 @@ const MarketplaceAppCard = ({ ...@@ -161,8 +161,8 @@ const MarketplaceAppCard = ({
title="Mark as favorite" title="Mark as favorite"
variant="ghost" variant="ghost"
colorScheme="gray" colorScheme="gray"
w={{ base: 6, sm: '30px' }} w={{ base: 6, md: '30px' }}
h={{ base: 6, sm: '30px' }} h={{ base: 6, md: '30px' }}
onClick={ handleFavoriteClick } onClick={ handleFavoriteClick }
icon={ isFavorite ? icon={ isFavorite ?
<IconSvg name="star_filled" w={ 5 } h={ 5 } color="yellow.400"/> : <IconSvg name="star_filled" w={ 5 } h={ 5 } color="yellow.400"/> :
...@@ -181,8 +181,8 @@ const MarketplaceAppCard = ({ ...@@ -181,8 +181,8 @@ const MarketplaceAppCard = ({
source="Discovery view" source="Discovery view"
popoverPlacement={ isMobile ? 'bottom-end' : 'bottom-start' } popoverPlacement={ isMobile ? 'bottom-end' : 'bottom-start' }
position="absolute" position="absolute"
right={{ base: 3, sm: 5 }} right={{ base: 3, md: 5 }}
top={{ base: '10px', sm: 5 }} top={{ base: '10px', md: 5 }}
border={ 0 } border={ 0 }
padding={ 0 } padding={ 0 }
/> />
......
...@@ -42,7 +42,7 @@ const MarketplaceAppIntegrationIcon = ({ external, internalWallet }: Props) => { ...@@ -42,7 +42,7 @@ const MarketplaceAppIntegrationIcon = ({ external, internalWallet }: Props) => {
position="relative" position="relative"
cursor="pointer" cursor="pointer"
verticalAlign="middle" verticalAlign="middle"
mb={{ base: 0, sm: 1 }} mb={{ base: 0, md: 1 }}
/> />
</Tooltip> </Tooltip>
); );
......
...@@ -33,11 +33,11 @@ const MarketplaceList = ({ apps, showAppInfo, favoriteApps, onFavoriteClick, isL ...@@ -33,11 +33,11 @@ const MarketplaceList = ({ apps, showAppInfo, favoriteApps, onFavoriteClick, isL
return apps.length > 0 ? ( return apps.length > 0 ? (
<Grid <Grid
templateColumns={{ templateColumns={{
sm: 'repeat(auto-fill, minmax(178px, 1fr))', md: 'repeat(auto-fill, minmax(230px, 1fr))',
lg: 'repeat(auto-fill, minmax(260px, 1fr))', lg: 'repeat(auto-fill, minmax(260px, 1fr))',
}} }}
autoRows="1fr" autoRows="1fr"
gap={{ base: '16px', sm: '24px' }} gap={{ base: '16px', md: '24px' }}
> >
{ apps.map((app, index) => ( { apps.map((app, index) => (
<MarketplaceAppCard <MarketplaceAppCard
......
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