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:
@@ -8,7 +8,7 @@ import { useRoomCameraSnapshots } from '../hooks/useRoomCameraSnapshots.js';
|
||||
import VideoTile from '../components/VideoTile.jsx';
|
||||
import ChatPanel from '../components/ChatPanel.jsx';
|
||||
|
||||
const ROTATE_MS = 9000;
|
||||
const ROTATE_MS = 13000;
|
||||
|
||||
function formatDriverLabel({ roverId, session }) {
|
||||
const activeDriverId = session?.activeDrivers?.[roverId] || null;
|
||||
@@ -98,7 +98,7 @@ function MiniSummaryContent() {
|
||||
Switching to spectator…
|
||||
</div>
|
||||
) : activeRover ? (
|
||||
<div className="relative h-full w-full">
|
||||
<FitViewportFrame>
|
||||
<VideoTile
|
||||
sessionInfo={activeVideo}
|
||||
audioSessionInfo={activeAudio}
|
||||
@@ -111,9 +111,11 @@ function MiniSummaryContent() {
|
||||
hudForceMap
|
||||
hudMapPosition="bottom-left"
|
||||
/>
|
||||
</div>
|
||||
</FitViewportFrame>
|
||||
) : 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">
|
||||
No sources available.
|
||||
@@ -171,3 +173,13 @@ function ChatOverlay() {
|
||||
</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