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,13 +4,15 @@
</script> </script>
<article class="main-container"> <article class="main-container">
<div class="header"> {#if title || description}
<div class="title"> <div class="header">
<h2>{title}</h2> <div class="title">
<slot name="top-left" /> <h2>{title}</h2>
<slot name="top-left" />
</div>
<label>{description}</label>
</div> </div>
<label>{description}</label> {/if}
</div>
<slot></slot> <slot></slot>
</article> </article>