// Mobile Landscape Driver Layout // Purpose: Owns the concrete landscape video, controls, and secondary-card placement. import AuxColumn from '../../../components/MobileControls/AuxColumn.jsx'; import MovementColumn from '../../../components/MobileControls/MovementColumn.jsx'; import NewDriveVideo from '../../../components/NewDriveVideo/index.jsx'; import { useSettingsNamespace } from '../../../settings/index.js'; import { themeGapClass } from '../../../themes/index.js'; import MobileLayoutFrame from '../MobileLayoutFrame/index.jsx'; import MobileSecondaryContent from '../MobileSecondaryContent/index.jsx'; export default function MobileLandscapeLayout() { const { value: pageSettings } = useSettingsNamespace('page', { swapMobileControlColumns: false }); const swap = Boolean(pageSettings?.swapMobileControlColumns); const columnClass = 'self-start h-[min(100svh,32rem)]'; const firstColumn = swap ? : ; const secondColumn = swap ? : ; return (
{/* The center column deliberately contains only the driver video. */}
{firstColumn}
{/* The grid owns the 4:3 height constraint so its center track always matches the video. Any width the video cannot use is reassigned to the control columns instead of becoming empty gutters around it. */}
{secondColumn}
); }