Skip to content

Commit

Permalink
💄 Fix broken collection item grid
Browse files Browse the repository at this point in the history
  • Loading branch information
nwingt authored and williamchong committed Aug 14, 2024
1 parent 7190fc5 commit 2b27d5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
14 changes: 1 addition & 13 deletions src/components/NFTBook/ItemCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@
/>
</client-only>
<div :class="['flex', 'relative', { 'mt-[48px]': !isCoverPreset }]">
<div
v-if="!isFutureTheme"
:class="[
'absolute',
'z-[0]',
'inset-x-[-38px] sm:inset-x-[-48px]',
'inset-y-0',
'bg-like-cyan-pale',
'rounded-[32px]',
shelfClass,
]"
/>
<component
:is="componentTag"
:class="[coverClasses, 'mt-[-48px]', 'z-[1]']"
Expand All @@ -36,7 +24,7 @@
/>
<NFTBookCover
v-else
:class="['mt-[-48px]', coverClasses]"
:class="coverClasses"
:src="imageSrc || NFTImageUrl"
:alt="NFTName"
:resize="200"
Expand Down
27 changes: 0 additions & 27 deletions src/components/NFTBook/Shelf.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,6 @@
@click-avatar="$emit('click-item-avatar', classId)"
/>
</li>

<template v-if="isShelfPreset && !isFutureTheme">
{{ /* NOTE: A dummy to make the book shelf extend to the right if only 1 book in 2 columns */ }}
<li
v-for="i in 2"
:key="`dummy-${i}`"
:class="[
'hidden',
getDummyResponsiveClass(i),
'relative',
'w-full',
'max-w-[220px]',
'h-[290px]',
]"
>
<div
:class="[
'absolute',
'inset-x-[-48px]',
'inset-y-0',
'mt-[48px]',
'bg-like-cyan-pale',
'rounded-r-[32px]',
]"
/>
</li>
</template>
</ul>
<Dialog
:open="dialogNFTClassList.length > 0"
Expand Down

0 comments on commit 2b27d5e

Please sign in to comment.