web/settings: move switcher description to correct component

This commit is contained in:
wukko
2024-07-10 19:35:23 +06:00
parent d8420116dc
commit c013134b70
7 changed files with 42 additions and 41 deletions

View File

@@ -3,7 +3,6 @@
export let sectionId: string;
export let title: string;
export let description: string = "";
let animate = false;
@@ -21,17 +20,13 @@
>
<h3 class="settings-content-title">{title}</h3>
<slot></slot>
{#if description.length > 0}
<div class="settings-content-description subtext">{description}</div>
{/if}
</section>
<style>
.settings-content {
display: flex;
flex-direction: column;
gap: 10px;
gap: var(--padding);
padding: calc(var(--settings-padding) / 2);
border-radius: 18px;
}