web/settings/download: fix padding for filename preview

This commit is contained in:
wukko 2024-08-30 21:31:21 +06:00
parent 063f5d1806
commit 1debf3e639
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -11,20 +11,20 @@
</script> </script>
<SettingsCategory sectionId="filename" title={$t("settings.metadata.filename")}> <SettingsCategory sectionId="filename" title={$t("settings.metadata.filename")}>
<Switcher big={true}> <div class="category-inside-group">
{#each filenameStyleOptions as value} <Switcher big={true}>
<SettingsButton {#each filenameStyleOptions as value}
settingContext="save" <SettingsButton
settingId="filenameStyle" settingContext="save"
settingValue={value} settingId="filenameStyle"
> settingValue={value}
{$t(`settings.metadata.filename.${value}`)} >
</SettingsButton> {$t(`settings.metadata.filename.${value}`)}
{/each} </SettingsButton>
</Switcher> {/each}
</Switcher>
<FilenamePreview /> <FilenamePreview />
</div>
<div class="subtext"> <div class="subtext">
{$t("settings.metadata.filename.description")} {$t("settings.metadata.filename.description")}
</div> </div>
@ -55,3 +55,15 @@
description={$t("settings.metadata.disable.description")} description={$t("settings.metadata.disable.description")}
/> />
</SettingsCategory> </SettingsCategory>
<style>
.category-inside-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.subtext {
margin-top: -3px;
}
</style>