ui: improve hover hint
parent
4d3d05ae5c
commit
fcde653efe
|
@ -30,6 +30,7 @@ const fieldNameIcons: Record<string, string> = {
|
|||
instagram: 'i-ri:instagram-line',
|
||||
website: 'i-ri:link',
|
||||
site: 'i-ri:link',
|
||||
portfolio: 'i-ri:link',
|
||||
blog: 'i-ri:newspaper-line',
|
||||
home: 'i-ri:home-2-line',
|
||||
sponsors: 'i-ri:heart-3-line',
|
||||
|
@ -37,6 +38,10 @@ const fieldNameIcons: Record<string, string> = {
|
|||
city: 'i-ri:map-pin-2-line',
|
||||
joined: 'i-ri:user-add-line',
|
||||
birth: 'i-ri:calendar-line',
|
||||
tumblr: 'i-ri:tumblr-fill',
|
||||
linkedin: 'i-ri:linkedin-box-fill',
|
||||
facebook: 'i-ri:facebook-fill',
|
||||
patreon: 'i-ri:patreon-fill',
|
||||
}
|
||||
|
||||
function getFieldNameIcon(fieldName: string) {
|
||||
|
|
|
@ -8,7 +8,7 @@ defineProps<{
|
|||
|
||||
<template>
|
||||
<NuxtLink :to="to" active-class="text-primary" group focus:outline-none>
|
||||
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 group-hover:bg-active group-focus-visible:ring="2 current">
|
||||
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-full group-hover:bg-active group-focus-visible:ring="2 current">
|
||||
<slot name="icon">
|
||||
<div :class="icon" />
|
||||
</slot>
|
||||
|
|
|
@ -17,8 +17,12 @@ const visibility = $computed(() => STATUS_VISIBILITIES.find(v => v.value === sta
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<div flex flex-col gap-2 py3 px-4 :id="`status-${status.id}`">
|
||||
<AccountInfo :account="status.account" :hover="true" />
|
||||
<div :id="`status-${status.id}`" flex flex-col gap-2 py3 px-4>
|
||||
<NuxtLink :to="getAccountPath(status.account)" rounded-full hover:bg-active transition-100 pr5 mr-a>
|
||||
<AccountHoverWrapper :account="status.account">
|
||||
<AccountInfo :account="status.account" />
|
||||
</AccountHoverWrapper>
|
||||
</NuxtLink>
|
||||
<StatusReplyingTo v-if="status.inReplyToAccountId" :status="status" />
|
||||
<StatusSpoiler :enabled="status.sensitive">
|
||||
<template #spoiler>
|
||||
|
|
Loading…
Reference in New Issue