Skip to content

Commit 635dc21

Browse files
committed
fix(UserMenu): align chips
1 parent 8b72150 commit 635dc21

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
@@ -174,13 +174,15 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
174174
/>
175175

176176
<template #chip-leading="{ item }">
177-
<span
178-
:style="{
179-
'--chip-light': `var(--color-${(item as any).chip}-500)`,
180-
'--chip-dark': `var(--color-${(item as any).chip}-400)`
181-
}"
182-
class="ms-0.5 size-2 rounded-full bg-(--chip-light) dark:bg-(--chip-dark)"
183-
/>
177+
<div class="inline-flex items-center justify-center shrink-0 size-5">
178+
<span
179+
class="rounded-full ring ring-bg bg-(--chip-light) dark:bg-(--chip-dark) size-2"
180+
:style="{
181+
'--chip-light': `var(--color-${(item as any).chip}-500)`,
182+
'--chip-dark': `var(--color-${(item as any).chip}-400)`
183+
}"
184+
/>
185+
</div>
184186
</template>
185187
</UDropdownMenu>
186188
</template>

0 commit comments

Comments
 (0)