web/settings: improve settings section ids

This commit is contained in:
wukko 2024-09-18 20:23:29 +06:00
parent b30b6957ce
commit ce054e63fc
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
3 changed files with 5 additions and 6 deletions

View file

@ -9,7 +9,7 @@
import SettingsToggle from "$components/buttons/SettingsToggle.svelte"; import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
</script> </script>
<SettingsCategory sectionId="audio-format" title={$t("settings.audio.format")}> <SettingsCategory sectionId="format" title={$t("settings.audio.format")}>
<Switcher big={true} description={$t("settings.audio.format.description")}> <Switcher big={true} description={$t("settings.audio.format.description")}>
{#each audioFormatOptions as value} {#each audioFormatOptions as value}
<SettingsButton <SettingsButton
@ -23,8 +23,7 @@
</Switcher> </Switcher>
</SettingsCategory> </SettingsCategory>
<SettingsCategory sectionId="bitrate" title={$t("settings.audio.bitrate")}>
<SettingsCategory sectionId="audio-bitrate" title={$t("settings.audio.bitrate")}>
<Switcher big={true} description={$t("settings.audio.bitrate.description")}> <Switcher big={true} description={$t("settings.audio.bitrate.description")}>
{#each audioBitrateOptions as value} {#each audioBitrateOptions as value}
<SettingsButton <SettingsButton

View file

@ -45,7 +45,7 @@
</SettingsCategory> </SettingsCategory>
<SettingsCategory <SettingsCategory
sectionId="disable-metadata" sectionId="metadata"
title={$t("settings.metadata.file")} title={$t("settings.metadata.file")}
> >
<SettingsToggle <SettingsToggle

View file

@ -17,7 +17,7 @@
</script> </script>
<SettingsCategory <SettingsCategory
sectionId="video-quality" sectionId="quality"
title={$t("settings.video.quality")} title={$t("settings.video.quality")}
> >
<Switcher big={true} description={$t("settings.video.quality.description")}> <Switcher big={true} description={$t("settings.video.quality.description")}>
@ -34,7 +34,7 @@
</SettingsCategory> </SettingsCategory>
<SettingsCategory <SettingsCategory
sectionId="youtube-codec" sectionId="codec"
title={$t("settings.video.youtube.codec")} title={$t("settings.video.youtube.codec")}
> >
<Switcher <Switcher