playbacks web

This commit is contained in:
2025-09-30 11:24:00 +02:00
parent 27fab69997
commit fc17b09e7a
7 changed files with 1068 additions and 15 deletions
+10 -2
View File
@@ -6,11 +6,13 @@ import useLayoutType from "../hooks/useLayoutType";
import { background as backgrounds } from "../assets";
import { Style } from "../styles";
// eslint-disable-next-line react/display-name
export default ({ currentUID = null, children }) => {
const { isWeb = false } = useLayoutType();
// Web: full-screen background with a centered content area (30% width)
const [webBackgroundImg] = useGlobal("webBackgroundImg");
const [webLayoutMode] = useGlobal("webLayoutMode");
if (isWeb) {
return (
@@ -39,9 +41,15 @@ export default ({ currentUID = null, children }) => {
{/* Centered content column (phone-like width) */}
<View
style={{
width: isWeb ? "60%" : "30%",
width:
webLayoutMode === "playbacks-wide"
? "90%"
: isWeb
? "60%"
: "30%",
minWidth: 360,
maxWidth: isWeb ? 800 : 520,
maxWidth:
webLayoutMode === "playbacks-wide" ? 1440 : isWeb ? 800 : 520,
height: "100svh",
backgroundColor: "transparent",
}}