Skip to content

Commit b6ad6cd

Browse files
committed
fix(UserMenu): align chips
1 parent 6b74d7c commit b6ad6cd

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

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

0 commit comments

Comments
 (0)