diff --git a/src/components/Popup.svelte b/src/components/Popup.svelte index 8605c79e..4dcbebdd 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. --> -