web/settings: move switcher description to correct component
This commit is contained in:
@@ -12,12 +12,8 @@
|
||||
import LanguageAutoToggle from "$components/settings/LanguageAutoToggle.svelte";
|
||||
</script>
|
||||
|
||||
<SettingsCategory
|
||||
sectionId="theme"
|
||||
title={$t("settings.theme")}
|
||||
description={$t("settings.theme.description")}
|
||||
>
|
||||
<Switcher big={true}>
|
||||
<SettingsCategory sectionId="theme" title={$t("settings.theme")}>
|
||||
<Switcher big={true} description={$t("settings.theme.description")}>
|
||||
{#each themeOptions as value}
|
||||
<SettingsButton
|
||||
settingContext="appearance"
|
||||
|
||||
@@ -9,12 +9,8 @@
|
||||
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
||||
</script>
|
||||
|
||||
<SettingsCategory
|
||||
sectionId="audio-format"
|
||||
title={$t("settings.audio.format")}
|
||||
description={$t("settings.audio.format.description")}
|
||||
>
|
||||
<Switcher big={true}>
|
||||
<SettingsCategory sectionId="audio-format" title={$t("settings.audio.format")}>
|
||||
<Switcher big={true} description={$t("settings.audio.format.description")}>
|
||||
{#each audioFormatOptions as value}
|
||||
<SettingsButton
|
||||
settingContext="save"
|
||||
|
||||
@@ -9,12 +9,11 @@
|
||||
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
||||
</script>
|
||||
|
||||
<SettingsCategory
|
||||
sectionId="filename"
|
||||
title={$t("settings.metadata.filename")}
|
||||
description={$t("settings.metadata.filename.description")}
|
||||
>
|
||||
<Switcher big={true}>
|
||||
<SettingsCategory sectionId="filename" title={$t("settings.metadata.filename")}>
|
||||
<Switcher
|
||||
big={true}
|
||||
description={$t("settings.metadata.filename.description")}
|
||||
>
|
||||
{#each filenameStyleOptions as value}
|
||||
<SettingsButton
|
||||
settingContext="save"
|
||||
|
||||
@@ -13,36 +13,41 @@
|
||||
<SettingsCategory
|
||||
sectionId="video-quality"
|
||||
title={$t("settings.video.quality")}
|
||||
description={$t("settings.video.quality.description")}
|
||||
>
|
||||
<Switcher big={true}>
|
||||
<Switcher big={true} description={$t("settings.video.quality.description")}>
|
||||
{#each videoQualityOptions as value}
|
||||
<SettingsButton settingContext="save" settingId="videoQuality" settingValue={value}>
|
||||
<SettingsButton
|
||||
settingContext="save"
|
||||
settingId="videoQuality"
|
||||
settingValue={value}
|
||||
>
|
||||
{$t(`settings.video.quality.${value}`)}
|
||||
</SettingsButton>
|
||||
{/each}
|
||||
</Switcher>
|
||||
|
||||
</SettingsCategory>
|
||||
|
||||
<SettingsCategory
|
||||
sectionId="youtube-codec"
|
||||
title={$t("settings.video.youtube.codec")}
|
||||
description={$t("settings.video.youtube.codec.description")}
|
||||
>
|
||||
<Switcher big={true}>
|
||||
<Switcher
|
||||
big={true}
|
||||
description={$t("settings.video.youtube.codec.description")}
|
||||
>
|
||||
{#each youtubeVideoCodecOptions as value}
|
||||
<SettingsButton settingContext="save" settingId="youtubeVideoCodec" settingValue={value}>
|
||||
<SettingsButton
|
||||
settingContext="save"
|
||||
settingId="youtubeVideoCodec"
|
||||
settingValue={value}
|
||||
>
|
||||
{$t(`settings.video.youtube.codec.${value}`)}
|
||||
</SettingsButton>
|
||||
{/each}
|
||||
</Switcher>
|
||||
|
||||
</SettingsCategory>
|
||||
|
||||
<SettingsCategory
|
||||
sectionId="twitter"
|
||||
title={$t("settings.video.twitter.gif")}>
|
||||
<SettingsCategory sectionId="twitter" title={$t("settings.video.twitter.gif")}>
|
||||
<SettingsToggle
|
||||
settingContext="save"
|
||||
settingId="twitterGif"
|
||||
@@ -51,9 +56,7 @@
|
||||
/>
|
||||
</SettingsCategory>
|
||||
|
||||
<SettingsCategory
|
||||
sectionId="tiktok"
|
||||
title={$t("settings.video.tiktok.h265")}>
|
||||
<SettingsCategory sectionId="tiktok" title={$t("settings.video.tiktok.h265")}>
|
||||
<SettingsToggle
|
||||
settingContext="save"
|
||||
settingId="tiktokH265"
|
||||
|
||||
Reference in New Issue
Block a user