ui: add hover indicator for post elements (#89)

This commit is contained in:
Shinigami 2022-11-25 14:21:42 +01:00 committed by GitHub
parent c2810fd5eb
commit d71f5b6420
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ const accountHandle = $(useAccountHandle(account, fullServer))
</NuxtLink>
</div>
<NuxtLink flex flex-col :to="link ? getAccountPath(account) : null">
<ContentRichSetup font-bold :content="getDisplayName(account)" :emojis="account.emojis" />
<ContentRichSetup font-bold hover:underline :content="getDisplayName(account)" :emojis="account.emojis" />
<p op35 text-sm>
{{ accountHandle }}
</p>

View file

@ -10,6 +10,6 @@ const { link = true } = defineProps<{
<template>
<NuxtLink :to="link ? getAccountPath(account) : undefined" min-w-0 flex gap-1 items-center>
<AccountAvatar :account="account" w-5 h-5 hover />
<ContentRichSetup :content="getDisplayName(account)" :emojis="account.emojis" />
<ContentRichSetup hover:underline :content="getDisplayName(account)" :emojis="account.emojis" />
</NuxtLink>
</template>

View file

@ -14,7 +14,7 @@ const accountHandle = $(useAccountHandle(account))
:to="link ? getAccountPath(account) : undefined"
flex="~ col" min-w-0 md:flex="~ row gap-2" md:items-center
>
<ContentRichSetup font-bold break-words :content="getDisplayName(account)" :emojis="account.emojis" />
<ContentRichSetup font-bold break-words hover:underline :content="getDisplayName(account)" :emojis="account.emojis" />
<p op35 text-sm>
{{ accountHandle }}
</p>

View file

@ -83,7 +83,7 @@ const timeago = useTimeAgo(() => status.createdAt, {
<StatusAccountDetails :account="status.account" />
<div flex-auto />
<CommonTooltip :content="createdAt">
<div text-sm op50 :title="status.createdAt">
<div text-sm op50 hover:underline :title="status.createdAt">
{{ timeago }}
</div>
</CommonTooltip>