Skip to content

Commit 1fb55c1

Browse files
committed
fix(UserMenu): align chips
1 parent f0eccc6 commit 1fb55c1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/components/UserMenu.vue

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

160160
<template #chip-leading="{ item }">
161-
<span
162-
:style="{
163-
'--chip-light': `var(--color-${(item as any).chip}-500)`,
164-
'--chip-dark': `var(--color-${(item as any).chip}-400)`
165-
}"
166-
class="ms-0.5 size-2 rounded-full bg-(--chip-light) dark:bg-(--chip-dark)"
167-
/>
161+
<div class="inline-flex items-center justify-center shrink-0 size-5">
162+
<span
163+
class="rounded-full ring ring-bg bg-(--chip-light) dark:bg-(--chip-dark) size-2"
164+
:style="{
165+
'--chip-light': `var(--color-${(item as any).chip}-500)`,
166+
'--chip-dark': `var(--color-${(item as any).chip}-400)`
167+
}"
168+
/>
169+
</div>
168170
</template>
169171
</UDropdownMenu>
170172
</template>

0 commit comments

Comments
 (0)