refactor: improve account info UI

zio/stable
三咲智子 2022-11-23 21:59:29 +08:00
parent 8a43cfaca5
commit 5605d518dc
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ export function getDisplayName(account: Account) {
// We don't want to hold to old values, so every time a Relationship is needed it // We don't want to hold to old values, so every time a Relationship is needed it
// is requested again from the server to show the latest state // is requested again from the server to show the latest state
const requestedRelationships = new Map<string, Ref<Relationship | undefined> >() const requestedRelationships = new Map<string, Ref<Relationship | undefined>>()
let timeoutHandle: NodeJS.Timeout | undefined let timeoutHandle: NodeJS.Timeout | undefined
export function useRelationship(account: Account): Ref<Relationship | undefined> { export function useRelationship(account: Account): Ref<Relationship | undefined> {

View File

@ -11,7 +11,8 @@
<div flex-auto /> <div flex-auto />
<AccountInfo <AccountInfo
v-if="currentUser" v-if="currentUser"
p4 mx4 mb4 p2 rounded
hover:bg-active cursor-pointer
:account="currentUser?.account" :account="currentUser?.account"
:link="false" :link="false"
@click="openUserSwitcher" @click="openUserSwitcher"