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:
parent
1fd3e37fa4
commit
35c9c85b86
2 changed files with 3 additions and 3 deletions
|
@ -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}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue