feat(web): face tooltips (#3924)

This commit is contained in:
Daniele Ricci 2023-09-01 01:25:13 +02:00 committed by GitHub
parent 58ae734fc2
commit 66cc744c22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 8 deletions

View file

@ -43,11 +43,18 @@
>
<a href="/people/{person.id}" draggable="false">
<div class="h-48 w-48 rounded-xl brightness-95 filter">
<ImageThumbnail shadow url={api.getPeopleThumbnailUrl(person.id)} altText={person.name} widthStyle="100%" />
<ImageThumbnail
shadow
url={api.getPeopleThumbnailUrl(person.id)}
altText={person.name}
title={person.name}
widthStyle="100%"
/>
</div>
{#if person.name}
<span
class="text-white-shadow absolute bottom-2 left-0 w-full select-text px-1 text-center font-medium text-white"
title={person.name}
>
{person.name}
</span>