mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
* feat(web): improved action bar actions * Update web/src/lib/components/photos-page/actions/delete-assets.svelte Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * update archive and favorite actions * feat: add un archive/favorite on associated pages * fix favorite action + use isAllArchived for photos * remove unneeded unarchive check --------- Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
18 lines
546 B
Svelte
18 lines
546 B
Svelte
<script lang="ts">
|
|
import { clickOutside } from '../../utils/click-outside';
|
|
import { createEventDispatcher } from 'svelte';
|
|
import { fade } from 'svelte/transition';
|
|
|
|
const dispatch = createEventDispatcher<{ clickOutside: void }>();
|
|
</script>
|
|
|
|
<section
|
|
in:fade={{ duration: 100 }}
|
|
out:fade={{ duration: 100 }}
|
|
class="fixed left-0 top-0 w-screen h-screen bg-black/40 z-[990] flex place-items-center place-content-center"
|
|
>
|
|
<div class="z-[9999]" use:clickOutside on:outclick={() => dispatch('clickOutside')}>
|
|
<slot />
|
|
</div>
|
|
</section>
|