From 109d9054d6e64b3ad0f5843a33d9cfe0dca79d6b Mon Sep 17 00:00:00 2001 From: mrjvs Date: Mon, 23 Oct 2023 21:06:31 +0200 Subject: [PATCH] caption settings reorganize Co-authored-by: Jip Frijlink --- src/components/player/atoms/Settings.tsx | 2 +- .../atoms/settings/CaptionSettingsView.tsx | 35 ++++++++++--------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/components/player/atoms/Settings.tsx b/src/components/player/atoms/Settings.tsx index cc02ee4e..68e36b83 100644 --- a/src/components/player/atoms/Settings.tsx +++ b/src/components/player/atoms/Settings.tsx @@ -51,7 +51,7 @@ function SettingsOverlay({ id }: { id: string }) { - + diff --git a/src/components/player/atoms/settings/CaptionSettingsView.tsx b/src/components/player/atoms/settings/CaptionSettingsView.tsx index 30a202f7..3189da7f 100644 --- a/src/components/player/atoms/settings/CaptionSettingsView.tsx +++ b/src/components/player/atoms/settings/CaptionSettingsView.tsx @@ -236,14 +236,16 @@ export function CaptionSettingsView({ id }: { id: string }) { decimalsAllowed={1} controlButtons /> - `${s}%`} - onChange={(v) => updateStyling({ size: v / 100 })} - value={styling.size * 100} - /> +
+ Fix capitalization +
+ setOverrideCasing(!overrideCasing)} + /> +
+
+ `${s}%`} /> + `${s}%`} + onChange={(v) => updateStyling({ size: v / 100 })} + value={styling.size * 100} + />
Color
@@ -264,15 +274,6 @@ export function CaptionSettingsView({ id }: { id: string }) { ))}
-
- Fix capitalization -
- setOverrideCasing(!overrideCasing)} - /> -
-
);