Skip to content

Commit b848e1e

Browse files
committed
refactor(styled card): simplify CardImage
1 parent c57f6ec commit b848e1e

File tree

1 file changed

+1
-3
lines changed
  • packages/kit-styled/src/components/card

1 file changed

+1
-3
lines changed

packages/kit-styled/src/components/card/card.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ const CardFooter = component$<PropsOf<'div'>>(({ ...props }) => {
5757

5858
// Experimental API
5959
const CardImage = component$<PropsOf<'img'>>(({ ...props }) => {
60-
return (
61-
<img {...props} class={cn('aspect-square h-full w-full object-cover', props.class)} />
62-
);
60+
return <img {...props} class={cn('w-full object-cover', props.class)} />;
6361
});
6462

6563
export {

0 commit comments

Comments
 (0)