Apply shared UI and workflow fixes
This commit is contained in:
1 parent
fb22af5272
commit
f208697859
15 files changed
+287
-62
No files matched your search
@@ -7,22 +7,37 @@
|
||||
brand = 'Application',
|
||||
children,
|
||||
description = '',
|
||||
icon,
|
||||
links = [],
|
||||
onClose,
|
||||
open = $bindable(false),
|
||||
version = ''
|
||||
}: {
|
||||
brand?: string;
|
||||
children?: Snippet;
|
||||
description?: string;
|
||||
icon?: Snippet;
|
||||
links?: AboutLink[];
|
||||
onClose?: () => void | Promise<void>;
|
||||
open?: boolean;
|
||||
version?: string;
|
||||
} = $props();
|
||||
|
||||
let wasOpen = false;
|
||||
|
||||
$effect(() => {
|
||||
if (wasOpen && !open) void onClose?.();
|
||||
wasOpen = open;
|
||||
});
|
||||
</script>
|
||||
|
||||
<Dialog bind:open title={`About ${brand}`}>
|
||||
<div class="sc-auth-brand">
|
||||
<span aria-hidden="true" class="sc-brand-mark">{brand.slice(0, 1).toUpperCase()}</span>
|
||||
{#if icon}
|
||||
{@render icon()}
|
||||
{:else}
|
||||
<span aria-hidden="true" class="sc-brand-mark">{brand.slice(0, 1).toUpperCase()}</span>
|
||||
{/if}
|
||||
<strong>{brand}</strong>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user