only show section header if values exist

This commit is contained in:
2025-09-03 00:13:30 +02:00
parent bbd8c1e40c
commit d233c8081a

View File

@@ -4,6 +4,7 @@
</script>
<article class="main-container">
{#if title || description}
<div class="header">
<div class="title">
<h2>{title}</h2>
@@ -11,6 +12,7 @@
</div>
<label>{description}</label>
</div>
{/if}
<slot></slot>
</article>