mirror of
https://github.com/movie-web/movie-web.git
synced 2025-02-03 04:42:34 +01:00
Add safe area inset bottom to next episode button
This commit is contained in:
parent
3109da2154
commit
903185f5a3
@ -62,9 +62,11 @@ export function NextEpisodeButton(props: {
|
|||||||
if (isHidden || status !== "playing" || duration === 0) show = false;
|
if (isHidden || status !== "playing" || duration === 0) show = false;
|
||||||
|
|
||||||
const animation = showingState === "hover" ? "slide-up" : "fade";
|
const animation = showingState === "hover" ? "slide-up" : "fade";
|
||||||
let bottom = "bottom-24";
|
let bottom = "bottom-[calc(6rem+env(safe-area-inset-bottom))]";
|
||||||
if (showingState === "always")
|
if (showingState === "always")
|
||||||
bottom = props.controlsShowing ? "bottom-24" : "bottom-12";
|
bottom = props.controlsShowing
|
||||||
|
? bottom
|
||||||
|
: "bottom-[calc(3rem+env(safe-area-inset-bottom))]";
|
||||||
|
|
||||||
const nextEp = meta?.episodes?.find(
|
const nextEp = meta?.episodes?.find(
|
||||||
(v) => v.number === (meta?.episode?.number ?? 0) + 1
|
(v) => v.number === (meta?.episode?.number ?? 0) + 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user