add toast when copying url to clipboard

This commit is contained in:
2026-06-28 20:22:35 +02:00
parent a1328e8908
commit dbec92375c
4 changed files with 42 additions and 3 deletions
@@ -0,0 +1,13 @@
<script lang="ts">
import { fly } from 'svelte/transition';
import { toast } from '@/entrypoints/popup/state';
</script>
{#if $toast}
<div
class="absolute top-2 left-1/2 -translate-x-1/2 z-20 px-3 py-1.5 bg-gray-700 text-gray-100 text-sm rounded shadow-lg pointer-events-none"
transition:fly={{ y: -20, duration: 200 }}
>
{$toast.message}
</div>
{/if}