Skip to content

Commit 55bf365

Browse files
[Manager] Fix card selection highlight z-index and border radius issues (#4160)
1 parent 48ac4a2 commit 55bf365

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/components/dialog/content/manager/packCard/PackCard.vue

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Card
33
class="w-full h-full inline-flex flex-col justify-between items-start overflow-hidden rounded-2xl shadow-elevation-3 dark-theme:bg-dark-elevation-2 transition-all duration-200"
44
:class="{
5-
'outline outline-[6px] outline-[var(--p-primary-color)]': isSelected,
5+
'selected-card': isSelected,
66
'opacity-60': isDisabled
77
}"
88
:pt="{
@@ -158,3 +158,22 @@ const formattedLatestVersionDate = computed(() => {
158158
})
159159
})
160160
</script>
161+
162+
<style scoped>
163+
.selected-card {
164+
position: relative;
165+
}
166+
167+
.selected-card::before {
168+
content: '';
169+
position: absolute;
170+
top: 0;
171+
left: 0;
172+
right: 0;
173+
bottom: 0;
174+
border: 6px solid var(--p-primary-color);
175+
border-radius: 1rem;
176+
pointer-events: none;
177+
z-index: 100;
178+
}
179+
</style>

0 commit comments

Comments
 (0)