refactor: server-about-modal (#22138)

* refactor: server-about-modal

* fix: bits-ui scroll lock cleanup
This commit is contained in:
Jason Rasmussen
2025-09-17 12:23:23 -04:00
committed by GitHub
parent 53c67f4d71
commit 98ea3847e5
3 changed files with 74 additions and 118 deletions

View File

@@ -0,0 +1,24 @@
<script lang="ts">
import { Label, Link, Text } from '@immich/ui';
type Props = {
id: string;
title: string;
version?: string;
versionHref?: string;
class?: string;
};
const { id, title, version, versionHref, class: className }: Props = $props();
</script>
<div class={className}>
<Label size="small" color="primary" for={id}>{title}</Label>
<Text size="small" color="muted" {id}>
{#if versionHref}
<Link external href={versionHref}>{version}</Link>
{:else}
{version}
{/if}
</Text>
</div>