Make calendar event detail nice

This commit is contained in:
Jon Staab
2025-02-06 11:12:15 -08:00
parent 1301c2c74f
commit 0ec620dff9
7 changed files with 91 additions and 42 deletions
+3 -4
View File
@@ -1,16 +1,15 @@
<script lang="ts">
interface Props {
children?: import("svelte").Snippet
class?: string
}
const {children, ...props}: Props = $props()
const {children}: Props = $props()
</script>
<div class="flex items-center gap-2 p-2 text-xs uppercase opacity-50">
<div class="h-px flex-grow bg-base-content opacity-25 {props.class}"></div>
<div class="h-px flex-grow bg-base-content opacity-25"></div>
{#if children}
<p>{@render children?.()}</p>
<div class="h-px flex-grow bg-base-content opacity-25 {props.class}"></div>
<div class="h-px flex-grow bg-base-content opacity-25"></div>
{/if}
</div>