From 08168f5477482f68e3782a35455c4362e1bdfe9b Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 14 May 2025 22:23:33 +0600 Subject: [PATCH] web/SectionHeading: refactor to svelte 5 style --- web/src/components/misc/SectionHeading.svelte | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/web/src/components/misc/SectionHeading.svelte b/web/src/components/misc/SectionHeading.svelte index 85cfd0dd..1146b069 100644 --- a/web/src/components/misc/SectionHeading.svelte +++ b/web/src/components/misc/SectionHeading.svelte @@ -1,26 +1,30 @@
@@ -40,11 +44,14 @@ aria-label={copied ? $t("button.copied") : $t(`button.copy${copyData ? "" : ".section"}`)} - on:click={() => { + onclick={() => { if (!copied) { copyURL(copyData || sectionURL); hapticConfirm(); copied = true; + setTimeout(() => { + copied = false; + }, 1500); } }} >