Skip to content

Commit 3a586b6

Browse files
committed
fix(UserMenu): align chips
1 parent 24ddc46 commit 3a586b6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

app/components/UserMenu.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,15 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
167167
/>
168168

169169
<template #chip-leading="{ item }">
170-
<span
171-
:style="{
172-
'--color-light': `var(--color-${(item as any).chip}-500)`,
173-
'--color-dark': `var(--color-${(item as any).chip}-400)`
174-
}"
175-
class="ms-0.5 size-2 rounded-full bg-(--color-light) dark:bg-(--color-dark)"
176-
/>
170+
<div class="inline-flex items-center justify-center shrink-0 size-5">
171+
<span
172+
class="rounded-full ring ring-bg bg-(--chip-light) dark:bg-(--chip-dark) size-2"
173+
:style="{
174+
'--chip-light': `var(--color-${(item as any).chip}-500)`,
175+
'--chip-dark': `var(--color-${(item as any).chip}-400)`
176+
}"
177+
/>
178+
</div>
177179
</template>
178180
</UDropdownMenu>
179181
</template>

0 commit comments

Comments
 (0)