Enhance web-ui components and styles with new features and dependencies

- Added @lucide/svelte as a dependency for icon support in various components.
- Updated AboutDialog, AppShell, AuthPage, Header, SettingsDialog, and styles for improved functionality and UI consistency.
- Introduced new props and state management for better user experience.
- Refactored CSS for cleaner styling and improved layout.
This commit is contained in:
Gabriel20xx committed 2026-08-07 15:18:50 +02:00
1 parent ce6db8a457
commit e3544617e1
9 files changed
+260 -43

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>