refactor(web): show & hide people ()

This commit is contained in:
Michel Heusschen 2024-07-08 03:33:59 +02:00 committed by GitHub
parent cb40db9555
commit e9683b326a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 312 additions and 260 deletions
web/src/lib/components/assets/thumbnail

View file

@ -19,7 +19,7 @@
export let hidden = false;
export let border = false;
export let preload = true;
export let eyeColor: 'black' | 'white' = 'white';
export let hiddenIconClass = 'text-white';
let complete = false;
let img: HTMLImageElement;
@ -54,7 +54,7 @@
{#if hidden}
<div class="absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%] transform">
<Icon {title} path={mdiEyeOffOutline} size="2em" class="text-{eyeColor}" />
<Icon {title} path={mdiEyeOffOutline} size="2em" class={hiddenIconClass} />
</div>
{/if}