Skip to content

Commit a5e45a4

Browse files
authored
fix: display actions when hover iconset card (#382)
1 parent 3f2027f commit a5e45a4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/components/CollectionEntry.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defineProps<{
1313
:key="collection.id"
1414
p3 relative
1515
border="~ base"
16-
class="grid grid-cols-[1fr_90px] gap2 items-center color-base transition-all translate-z-0"
16+
class="grid grid-cols-[1fr_90px] gap2 items-center color-base transition-all translate-z-0 group"
1717
hover="text-primary !border-primary shadow"
1818
:to="`/collection/${collection.id}`"
1919
>
@@ -40,25 +40,24 @@ defineProps<{
4040
<div
4141
absolute top--1px right--1px
4242
flex="~ items-center"
43-
op0 hover="op100 transition-all"
43+
op0 group-hover="op100 transition-all"
44+
un-children="op-64 hover:op-100"
4445
>
4546
<button
46-
class="group"
4747
border="~ primary" p2 bg-base
4848
:title="isFavoritedCollection(collection.id) ? 'Remove from favorites' : 'Add to favorites'"
4949
@click.prevent="toggleFavoriteCollection(collection.id)"
5050
>
51-
<div v-if="isFavoritedCollection(collection.id)" i-carbon-star-filled op50 group-hover="op100" />
52-
<div v-else i-carbon-star op50 group-hover="op100" />
51+
<div v-if="isFavoritedCollection(collection.id)" i-carbon-star-filled />
52+
<div v-else i-carbon-star />
5353
</button>
5454
<button
5555
v-if="type === 'recent'"
56-
class="group"
5756
border="~ primary" p2 bg-base ml--1px
5857
:title="type === 'recent' ? 'Remove from recent' : type === 'favorite' || isFavoritedCollection(collection.id) ? 'Remove from favorites' : 'Add to favorites'"
5958
@click.prevent="removeRecentCollection(collection.id)"
6059
>
61-
<div i-carbon-delete op50 group-hover="op100" />
60+
<div i-carbon-delete />
6261
</button>
6362
</div>
6463
</RouterLink>

0 commit comments

Comments
 (0)