From 2c45416a24cc87ab34df0810a4fb9c3fa39cfdf4 Mon Sep 17 00:00:00 2001 From: Script Raccoon Date: Sat, 1 Aug 2026 12:04:46 +0200 Subject: [PATCH] add button to expand popup --- src/components/Popup.svelte | 38 +++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/src/components/Popup.svelte b/src/components/Popup.svelte index 8605c79ec..4dcbebdda 100644 --- a/src/components/Popup.svelte +++ b/src/components/Popup.svelte @@ -4,20 +4,23 @@ open: boolean heading: string text: string + expanded: boolean } export const popup_state = $state({ id: '', open: false, heading: '', - text: '' + text: '', + expanded: false }) - export function show_popup(data: Omit) { + export function show_popup(data: Omit) { popup_state.open = true popup_state.id = data.id popup_state.heading = data.heading popup_state.text = data.text + popup_state.expanded = false } export function close_popup() { @@ -29,7 +32,7 @@ @@ -60,10 +67,23 @@ In theory, it is better to use a here, but Safari makes many problems, Firefox does not display the native animation, and there is an issue when clicking two proofs in a row. So it's a
then. --> -