mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
refactor(web): show & hide people (#10933)
This commit is contained in:
parent
cb40db9555
commit
e9683b326a
6 changed files with 312 additions and 260 deletions
web/src/lib/components/assets/thumbnail
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue