mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
fix up driver video component
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
@@ -5,8 +5,8 @@
|
|||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>webui</title>
|
<title>webui</title>
|
||||||
<script type="module" crossorigin src="/assets/index-Bd5JgrUJ.js"></script>
|
<script type="module" crossorigin src="/assets/index-BuX6SHdt.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-Cc0W7UiH.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-BIPzbwX3.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -22,7 +22,15 @@ export default function DriverVideoPanel() {
|
|||||||
{roverId ? (
|
{roverId ? (
|
||||||
<VideoTile sessionInfo={info} label={roverLabel} telemetryFrame={frame} batteryConfig={batteryConfig} />
|
<VideoTile sessionInfo={info} label={roverLabel} telemetryFrame={frame} batteryConfig={batteryConfig} />
|
||||||
) : (
|
) : (
|
||||||
<p className="panel-muted">Assign a rover to view the video feed.</p>
|
<div className="panel-muted content-center text-center text-sm text-slate-400 aspect-video">
|
||||||
|
<p>You are not assigned to a rover.</p>
|
||||||
|
{/* colored button to visit the spectator page */}
|
||||||
|
<p className="mt-2">
|
||||||
|
<a href="/spectate" className="text-blue-400 underline hover:text-blue-500">
|
||||||
|
Click here to visit the spectator page.
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user