feat: optimize changelog display
All checks were successful
🚀 Lint & Test & Deploy / release (push) Successful in 4m5s

- Hide releases under a Detail
- Hide all commits under a Detail
This commit is contained in:
release-bot
2026-02-08 19:04:56 +01:00
parent 979e9fd922
commit e44b73bebf
8 changed files with 438 additions and 144 deletions

View File

@@ -1,31 +1,46 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import { type Snippet } from 'svelte';
interface Props {
title?: string;
transparent?: boolean;
children?: Snippet;
open?: boolean;
class?: string;
}
let { title = 'Details', transparent = false, children, open = $bindable(false) }: Props =
$props();
let { title = 'Details', transparent = false, children, open = $bindable(false), class: _class }:
Props = $props();
</script>
<details class:transparent bind:open class="text-text outline-1 outline-outline bg-layer-1">
<details
class:transparent
bind:open
class="text-text outline-1 outline-outline bg-layer-1 {_class}"
>
<summary>{title}</summary>
<div class="content">
<div>
{@render children?.()}
</div>
</details>
<style>
details {
border-radius: 2px;
}
summary {
padding: 1em;
padding-left: 20px;
border-radius: 2px;
font-weight: 300;
font-size: 0.9em;
}
details[open] > summary {
border-bottom: solid thin var(--color-outline);
}
details > div {
padding: 1em;
}
details.transparent {
background-color: transparent;
padding: 0;