1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

fix: increase maximum subtitle size, set background blur max to 100% and increase padding on the bottom of captions view

This commit is contained in:
qtchaos 2024-03-11 17:46:47 +02:00
parent 1fd3e37fa4
commit 35c9c85b86
No known key found for this signature in database
GPG key ID: 7DA98B2B9EF06A90
2 changed files with 3 additions and 3 deletions

View file

@ -231,7 +231,7 @@ export function CaptionSettingsView({ id }: { id: string }) {
<Menu.BackLink onClick={() => router.navigate("/captions")}>
{t("player.menus.subtitles.settings.backlink")}
</Menu.BackLink>
<Menu.Section className="space-y-6">
<Menu.Section className="space-y-6 pb-4">
<CaptionSetting
label={t("player.menus.subtitles.settings.delay")}
max={10}

View file

@ -69,11 +69,11 @@ export const useSubtitleStore = create(
if (newStyling.backgroundOpacity !== undefined)
s.styling.backgroundOpacity = newStyling.backgroundOpacity;
if (newStyling.backgroundBlur !== undefined)
s.styling.backgroundBlur = newStyling.backgroundBlur;
s.styling.backgroundBlur = Math.min(1, newStyling.backgroundBlur);
if (newStyling.color !== undefined)
s.styling.color = newStyling.color.toLowerCase();
if (newStyling.size !== undefined)
s.styling.size = Math.min(2, Math.max(0.01, newStyling.size));
s.styling.size = Math.min(10, Math.max(0.01, newStyling.size));
});
},
setLanguage(lang) {