Skip to content

Commit 15615f6

Browse files
committed
update user dropdown
1 parent 667d742 commit 15615f6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

auto-imports.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// @ts-nocheck
44
// noinspection JSUnusedGlobalSymbols
55
// Generated by unplugin-auto-import
6+
// biome-ignore lint: disable
67
export {}
78
declare global {
89
const EffectScope: typeof import('vue')['EffectScope']
@@ -327,6 +328,6 @@ declare global {
327328
// for type re-export
328329
declare global {
329330
// @ts-ignore
330-
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
331+
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
331332
import('vue')
332333
}

src/components/UserDropdown.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ watchEffect(() => {
2020
</button>
2121
<ul tabindex="0" class="dropdown-content join join-vertical !right-0 z-10 mt-6 w-40 p-0 text-sm">
2222
<li>
23-
<button class="font-small btn join-item pointer-events-none w-full cursor-not-allowed flex-nowrap px-2 text-left opacity-100">
24-
<span class="grow text-right"> <span class="opacity-60">Signed in as</span> {{ jwtPayload?.username }} </span>
23+
<button class="font-small btn join-item grow flex-col gap-1 items-end pointer-events-none w-full cursor-not-allowed px-2 opacity-100">
24+
<span class="opacity-60">Signed in as</span>
25+
<span>{{ jwtPayload?.username }}</span>
2526
</button>
2627
</li>
2728
<li>
@@ -38,7 +39,7 @@ watchEffect(() => {
3839
</li>
3940
<li>
4041
<button class="font-small btn join-item w-full flex-nowrap px-2 text-right" @click="logoutCurrentUser()">
41-
<span class="grow text-right">Logout</span>
42+
<span class="grow text-right">Log out</span>
4243
<span class="rounded-lg p-1">
4344
<button class="opacity-50" @click="logoutCurrentUser()">
4445
<heroicons-arrow-right-on-rectangle class="size-5" />

0 commit comments

Comments
 (0)