mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-10-29 17:40:28 +00:00
only show section header if values exist
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<article class="main-container">
|
<article class="main-container">
|
||||||
|
{#if title || description}
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h2>{title}</h2>
|
<h2>{title}</h2>
|
||||||
@@ -11,6 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<label>{description}</label>
|
<label>{description}</label>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user