feat: improve account links feedback
This commit is contained in:
parent
47ad3fe8bf
commit
2fb5412a08
8 changed files with 16 additions and 9 deletions
|
@ -7,7 +7,7 @@ defineProps<{
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<div bg-base border="~ base" rounded w-80 z-900 overflow-hidden p-4 class="account-hover-card">
|
||||
<div rounded w-80 z-900 overflow-hidden p-4>
|
||||
<AccountInfo :account="account" />
|
||||
<div text-sm flex flex-row text-secondary mt-4>
|
||||
<NuxtLink :to="`/${getFullHandle(account)}/`">
|
||||
|
|
|
@ -7,7 +7,7 @@ defineProps<{
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<VMenu placement="bottom-start">
|
||||
<VMenu placement="bottom-start" :delay="{ show: 500, hide: 100 }">
|
||||
<slot />
|
||||
<template #popper>
|
||||
<AccountHoverCard :account="account" />
|
||||
|
|
|
@ -12,7 +12,7 @@ const { account } = defineProps<{
|
|||
<div flex gap-3>
|
||||
<AccountAvatar :account="account" w-12 h-12 />
|
||||
<div flex="~ col">
|
||||
<ContentRich font-bold hover:underline :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
|
||||
<ContentRich font-bold :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
|
||||
<AccountHandle :account="account" text-sm />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -8,8 +8,12 @@ const { link = true } = defineProps<{
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtLink :to="link ? getAccountPath(account) : undefined" min-w-0 flex gap-1 items-center>
|
||||
<NuxtLink
|
||||
:to="link ? getAccountPath(account) : undefined"
|
||||
:class="link ? 'text-link-rounded' : ''"
|
||||
min-w-0 flex gap-1 items-center
|
||||
>
|
||||
<AccountAvatar :account="account" w-5 h-5 />
|
||||
<ContentRich hover:underline :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
|
||||
<ContentRich :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue