feat(web): face tooltips ()

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
web/src/lib/components/assets/thumbnail

View file

@ -7,6 +7,7 @@
export let url: string;
export let altText: string;
export let title: string | null = null;
export let heightStyle: string | undefined = undefined;
export let widthStyle: string;
export let thumbhash: string | null = null;
@ -27,6 +28,7 @@
style:opacity={hidden ? '0.5' : '1'}
src={url}
alt={altText}
{title}
class="object-cover transition duration-300 {border
? 'border-[3px] border-immich-dark-primary/80 hover:border-immich-primary'
: ''}"
@ -51,6 +53,7 @@
style:height={heightStyle}
src={thumbHashToDataURL(Buffer.from(thumbhash, 'base64'))}
alt={altText}
{title}
class="absolute top-0 object-cover"
class:rounded-xl={curve}
class:shadow-lg={shadow}