mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
letter my box
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,8 +11,8 @@
|
|||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
|
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
|
||||||
<title>Multi Roomba Rover</title>
|
<title>Multi Roomba Rover</title>
|
||||||
<script type="module" crossorigin src="/assets/index-BpyM0lPm.js"></script>
|
<script type="module" crossorigin src="/assets/index-DArhGeDQ.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-B88Ix9u6.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-D3XxObGc.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { useRoomCameraSnapshots } from '../hooks/useRoomCameraSnapshots.js';
|
|||||||
import VideoTile from '../components/VideoTile.jsx';
|
import VideoTile from '../components/VideoTile.jsx';
|
||||||
import ChatPanel from '../components/ChatPanel.jsx';
|
import ChatPanel from '../components/ChatPanel.jsx';
|
||||||
|
|
||||||
const ROTATE_MS = 9000;
|
const ROTATE_MS = 13000;
|
||||||
|
|
||||||
function formatDriverLabel({ roverId, session }) {
|
function formatDriverLabel({ roverId, session }) {
|
||||||
const activeDriverId = session?.activeDrivers?.[roverId] || null;
|
const activeDriverId = session?.activeDrivers?.[roverId] || null;
|
||||||
@@ -98,7 +98,7 @@ function MiniSummaryContent() {
|
|||||||
Switching to spectator…
|
Switching to spectator…
|
||||||
</div>
|
</div>
|
||||||
) : activeRover ? (
|
) : activeRover ? (
|
||||||
<div className="relative h-full w-full">
|
<FitViewportFrame>
|
||||||
<VideoTile
|
<VideoTile
|
||||||
sessionInfo={activeVideo}
|
sessionInfo={activeVideo}
|
||||||
audioSessionInfo={activeAudio}
|
audioSessionInfo={activeAudio}
|
||||||
@@ -111,9 +111,11 @@ function MiniSummaryContent() {
|
|||||||
hudForceMap
|
hudForceMap
|
||||||
hudMapPosition="bottom-left"
|
hudMapPosition="bottom-left"
|
||||||
/>
|
/>
|
||||||
</div>
|
</FitViewportFrame>
|
||||||
) : activeCamera ? (
|
) : activeCamera ? (
|
||||||
<RoomCameraFrame camera={activeCamera} feed={activeFeed} />
|
<FitViewportFrame>
|
||||||
|
<RoomCameraFrame camera={activeCamera} feed={activeFeed} />
|
||||||
|
</FitViewportFrame>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex h-full w-full items-center justify-center text-sm text-slate-500">
|
<div className="flex h-full w-full items-center justify-center text-sm text-slate-500">
|
||||||
No sources available.
|
No sources available.
|
||||||
@@ -171,3 +173,13 @@ function ChatOverlay() {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function FitViewportFrame({ children }) {
|
||||||
|
return (
|
||||||
|
<div className="flex h-full w-full items-center justify-center overflow-hidden bg-black">
|
||||||
|
<div className="max-h-full max-w-full w-full h-full flex items-center justify-center">
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user