Skip to content

Commit

Permalink
fix(tests): is this making it fail?
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Nov 2, 2023
1 parent 4cdeb66 commit fdfcc3d
Showing 1 changed file with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,19 @@ interface MediaCardProps {
$size: PreviewIconSize
}

export const MediaCard = styled(Card)<MediaCardProps>`
width: ${(props) => (props.$size === 'small' ? '35px' : '41px')};
height: ${(props) => (props.$size === 'small' ? '35px' : '41px')};
export const MediaCardBig = styled(Card)<MediaCardProps>`
width: 41px;
height: 41px;
svg {
width: 100%;
height: 100%;
}
`

export const MediaCard = styled(Card)`
width: 35px;
height: 35px;
svg {
width: 100%;
Expand All @@ -33,9 +43,15 @@ export const WorkspacePreviewIcon = ({
size: PreviewIconSize
}) => {
const iconComponent = useMemo(() => createIcon(icon), [icon])
if (size === 'large')
return (
<MediaCardBig radius={2} tone="transparent" $size={size}>
{iconComponent}
</MediaCardBig>
)

return (
<MediaCard radius={2} tone="transparent" $size={size}>
<MediaCard radius={2} tone="transparent">
{iconComponent}
</MediaCard>
)
Expand Down

0 comments on commit fdfcc3d

Please sign in to comment.