Skip to content

Commit

Permalink
fix nft height
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed Sep 6, 2023
1 parent 123aa93 commit 865df4a
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions packages/shared/src/components/molecules/NftImageOrIconBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,19 @@
"
>
{#if parentType === 'image'}
<div class="min-w-full min-h-full object-cover">
<NftMedia {nft} {useCaching}>
<div
slot="placeholder"
class="
w-full h-full
{size === 'small' && 'p-1'}
{size === 'medium' && 'p-2'}
{size === 'large' && 'p-2'}
"
>
<MediaPlaceholder type={nftType} iconOnly />
</div>
</NftMedia>
</div>
<NftMedia {nft} {useCaching} classes="h-full w-full object-cover">
<div
slot="placeholder"
class="
w-full h-full
{size === 'small' && 'p-1'}
{size === 'medium' && 'p-2'}
{size === 'large' && 'p-2'}
"
>
<MediaPlaceholder type={nftType} iconOnly />
</div>
</NftMedia>
{:else}
<div
class="
Expand Down

0 comments on commit 865df4a

Please sign in to comment.