|
|
|
@@ -23,7 +23,7 @@ const AppCard = ({ |
|
|
|
const { t } = useTranslation() |
|
|
|
const { app: appBasicInfo } = app |
|
|
|
return ( |
|
|
|
<div className={cn('group flex col-span-1 bg-white border-2 border-solid border-transparent rounded-lg shadow-sm min-h-[160px] flex flex-col transition-all duration-200 ease-in-out cursor-pointer hover:shadow-lg')}> |
|
|
|
<div className={cn('relative overflow-hidden pb-2 group col-span-1 bg-white border-2 border-solid border-transparent rounded-lg shadow-sm flex flex-col transition-all duration-200 ease-in-out cursor-pointer hover:shadow-lg')}> |
|
|
|
<div className='flex pt-[14px] px-[14px] pb-3 h-[66px] items-center gap-3 grow-0 shrink-0'> |
|
|
|
<div className='relative shrink-0'> |
|
|
|
<AppIcon |
|
|
|
@@ -64,9 +64,13 @@ const AppCard = ({ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className='mb-1 px-[14px] text-xs leading-normal text-gray-500 line-clamp-4 group-hover:line-clamp-2 group-hover:h-9'>{app.description}</div> |
|
|
|
<div className="description-wrapper h-[90px] px-[14px] text-xs leading-normal text-gray-500 "> |
|
|
|
<div className='line-clamp-4 group-hover:line-clamp-2'> |
|
|
|
{app.description} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{isExplore && canCreate && ( |
|
|
|
<div className={cn('hidden items-center flex-wrap min-h-[42px] px-[14px] pt-2 pb-[10px] group-hover:flex')}> |
|
|
|
<div className={cn('hidden items-center flex-wrap min-h-[42px] px-[14px] pt-2 pb-[10px] bg-white group-hover:flex absolute bottom-0 left-0 right-0')}> |
|
|
|
<div className={cn('flex items-center w-full space-x-2')}> |
|
|
|
<Button variant='primary' className='grow h-7' onClick={() => onCreate()}> |
|
|
|
<PlusIcon className='w-4 h-4 mr-1' /> |
|
|
|
@@ -76,7 +80,7 @@ const AppCard = ({ |
|
|
|
</div> |
|
|
|
)} |
|
|
|
{!isExplore && ( |
|
|
|
<div className={cn('hidden items-center flex-wrap min-h-[42px] px-[14px] pt-2 pb-[10px] group-hover:flex')}> |
|
|
|
<div className={cn('hidden items-center flex-wrap min-h-[42px] px-[14px] pt-2 pb-[10px] bg-white group-hover:flex absolute bottom-0 left-0 right-0')}> |
|
|
|
<div className={cn('flex items-center w-full space-x-2')}> |
|
|
|
<Button variant='primary' className='grow h-7' onClick={() => onCreate()}> |
|
|
|
<PlusIcon className='w-4 h-4 mr-1' /> |