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,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>
|
||||||
|
|||||||
Reference in New Issue
Block a user