Create logs route

This commit is contained in:
thiloho
2024-09-13 17:04:04 +02:00
parent e661368b89
commit 2b97a28488
9 changed files with 326 additions and 43 deletions

View File

@@ -1,14 +1,19 @@
<script lang="ts">
import type { Snippet } from "svelte";
const { children, id, text }: { children: Snippet; id: string; text: string } = $props();
const {
children,
id,
text,
isWider = false
}: { children: Snippet; id: string; text: string; isWider?: boolean } = $props();
const modalId = `${id}-modal`;
</script>
<a href={`#${modalId}`} role="button">{text}</a>
<div id={modalId} class="modal">
<div id={modalId} class="modal" style="--modal-width: {isWider ? 600 : 300}px">
<div class="modal__content">
{@render children()}
<a href="#!" role="button">Close</a>
@@ -46,7 +51,7 @@
background-color: var(--bg-primary);
border-radius: var(--border-radius);
border: var(--border-primary);
inline-size: 300px;
inline-size: var(--modal-width);
max-inline-size: 100%;
max-block-size: calc(100vh - var(--space-m));
overflow-y: auto;