diff --git a/src/components/overlays/OverlayDisplay.tsx b/src/components/overlays/OverlayDisplay.tsx index 93054df1..009e769d 100644 --- a/src/components/overlays/OverlayDisplay.tsx +++ b/src/components/overlays/OverlayDisplay.tsx @@ -64,7 +64,7 @@ export function Overlay(props: OverlayProps) { {portalElement ? createPortal( -
+
- + {props.children}
diff --git a/src/components/overlays/positions/OverlayMobilePosition.tsx b/src/components/overlays/positions/OverlayMobilePosition.tsx index 4c4b387c..88d5c1ab 100644 --- a/src/components/overlays/positions/OverlayMobilePosition.tsx +++ b/src/components/overlays/positions/OverlayMobilePosition.tsx @@ -10,7 +10,7 @@ export function OverlayMobilePosition(props: MobilePositionProps) { return (
diff --git a/src/components/player/atoms/Episodes.tsx b/src/components/player/atoms/Episodes.tsx index 5706ce98..a26010e6 100644 --- a/src/components/player/atoms/Episodes.tsx +++ b/src/components/player/atoms/Episodes.tsx @@ -194,7 +194,11 @@ interface EpisodesProps { onChange?: (meta: PlayerMeta) => void; } -export function Episodes(props: EpisodesProps) { +export function EpisodesRouter(props: EpisodesProps) { + return ; +} + +export function Episodes() { const { t } = useTranslation(); const router = useOverlayRouter("episodes"); const setHasOpenOverlay = usePlayerStore((s) => s.setHasOpenOverlay); @@ -213,7 +217,6 @@ export function Episodes(props: EpisodesProps) { > {t("videoPlayer.buttons.episodes")} - ); } diff --git a/src/components/player/atoms/Settings.tsx b/src/components/player/atoms/Settings.tsx index 833eea4c..342929cb 100644 --- a/src/components/player/atoms/Settings.tsx +++ b/src/components/player/atoms/Settings.tsx @@ -75,6 +75,10 @@ function SettingsOverlay({ id }: { id: string }) { ); } +export function SettingsRouter() { + return ; +} + export function Settings() { const router = useOverlayRouter("settings"); const setHasOpenOverlay = usePlayerStore((s) => s.setHasOpenOverlay); @@ -86,7 +90,6 @@ export function Settings() { return ( router.open()} icon={Icons.GEAR} /> - ); } diff --git a/src/pages/parts/player/PlayerPart.tsx b/src/pages/parts/player/PlayerPart.tsx index f8dc40ff..6af3d36b 100644 --- a/src/pages/parts/player/PlayerPart.tsx +++ b/src/pages/parts/player/PlayerPart.tsx @@ -23,6 +23,8 @@ export function PlayerPart(props: PlayerPartProps) { {props.children} + + {status === playerStatus.PLAYING ? ( @@ -75,7 +77,7 @@ export function PlayerPart(props: PlayerPartProps) {
- +