mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
feat(web): face tooltips (#3924)
This commit is contained in:
parent
58ae734fc2
commit
66cc744c22
3 changed files with 28 additions and 8 deletions
web/src/lib/components/assets/thumbnail
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue