Skip to content

Commit d27f023

Browse files
committed
refactor BaseFilterBadge to use DropdownMenuTrigger directly and avoid class merging conflicts
1 parent db57055 commit d27f023

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

resources/js/Components/Common/Project/BaseFilterBadge.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ defineSlots<{
2626
<div
2727
class="inline-flex items-center gap-0.5 rounded-md bg-tertiary dark:bg-secondary border border-border-secondary">
2828
<DropdownMenu>
29-
<DropdownMenuTrigger as-child>
30-
<button
31-
class="inline-flex items-center gap-1.5 px-2 py-1 text-sm hover:bg-quaternary dark:hover:bg-tertiary rounded-l-md transition-colors">
32-
<component :is="icon" class="h-3.5 w-3.5 text-icon-default" />
33-
<span class="font-medium text-foreground">{{ filterName }}</span>
34-
<span class="text-muted-foreground">is</span>
35-
<span class="text-foreground">{{ label }}</span>
36-
<ChevronDownIcon class="h-3 w-3 text-muted-foreground" />
37-
</button>
29+
<DropdownMenuTrigger
30+
class="inline-flex items-center gap-1.5 px-2 py-1 text-sm hover:bg-quaternary dark:hover:bg-tertiary rounded-l-md transition-colors whitespace-nowrap">
31+
<component :is="icon" class="h-3.5 w-3.5 text-icon-default" />
32+
<span class="font-medium text-foreground">{{ filterName }}</span>
33+
<span class="text-muted-foreground">is</span>
34+
<span class="text-foreground">{{ label }}</span>
35+
<ChevronDownIcon class="h-3 w-3 text-muted-foreground" />
3836
</DropdownMenuTrigger>
3937
<DropdownMenuContent align="start">
4038
<slot />

0 commit comments

Comments
 (0)