mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 10:00:46 -04:00
web ui fixes and tweaks
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@
|
|||||||
<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-CC16_icM.js"></script>
|
<script type="module" crossorigin src="/assets/index-ff57kxdF.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-DUNdvQw9.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-DUNdvQw9.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
+2
-2
@@ -89,8 +89,8 @@ function MobilePortraitLayout() {
|
|||||||
<TelemetryPanel />
|
<TelemetryPanel />
|
||||||
<AuthPanel />
|
<AuthPanel />
|
||||||
<AdminPanel />
|
<AdminPanel />
|
||||||
<RoomCameraPanel panelId="mobile-portrait-room" />
|
|
||||||
<HomeAssistantControls />
|
<HomeAssistantControls />
|
||||||
|
<RoomCameraPanel panelId="mobile-portrait-room" />
|
||||||
<LogPanel />
|
<LogPanel />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -119,8 +119,8 @@ function MobileLandscapeLayout() {
|
|||||||
<ChatPanel />
|
<ChatPanel />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<RoomCameraPanel panelId="mobile-landscape-room" />
|
|
||||||
<HomeAssistantControls />
|
<HomeAssistantControls />
|
||||||
|
<RoomCameraPanel panelId="mobile-landscape-room" />
|
||||||
{/* <DrivePanel /> */}
|
{/* <DrivePanel /> */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -198,9 +198,8 @@ function MobileJoystickPanel({ layout }) {
|
|||||||
setServoAngle(next);
|
setServoAngle(next);
|
||||||
};
|
};
|
||||||
|
|
||||||
const containerClass = `flex flex-col gap-0.5 text-slate-100 ${
|
const fillClass = dockedNotDriving ? 'max-h-screen self-start' : '';
|
||||||
dockedNotDriving ? 'h-screen max-h-screen' : ''
|
const containerClass = `flex h-full flex-col gap-0.5 text-slate-100 ${fillClass}`;
|
||||||
}`;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={containerClass}>
|
<div className={containerClass}>
|
||||||
@@ -285,7 +284,7 @@ function AuxMotorPanel({ orientation }) {
|
|||||||
const gridCols = orientation === 'landscape' ? 'grid-cols-1' : 'grid-cols-1 sm:grid-cols-2';
|
const gridCols = orientation === 'landscape' ? 'grid-cols-1' : 'grid-cols-1 sm:grid-cols-2';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-0.5 text-slate-100">
|
<div className="flex h-full flex-col gap-0.5 text-slate-100">
|
||||||
<p className="text-xs text-slate-400">Aux controls</p>
|
<p className="text-xs text-slate-400">Aux controls</p>
|
||||||
<div className={`grid ${gridCols} gap-0.5`}>
|
<div className={`grid ${gridCols} gap-0.5`}>
|
||||||
{AUX_BUTTONS.map((button) => (
|
{AUX_BUTTONS.map((button) => (
|
||||||
@@ -330,7 +329,7 @@ export function MobileLandscapeControlColumn() {
|
|||||||
export default function MobilePortraitControls() {
|
export default function MobilePortraitControls() {
|
||||||
return (
|
return (
|
||||||
<section className="panel">
|
<section className="panel">
|
||||||
<div className="grid grid-cols-2 gap-0.5">
|
<div className="grid grid-cols-2 gap-0.5 items-stretch">
|
||||||
<AuxMotorPanel orientation="portrait" />
|
<AuxMotorPanel orientation="portrait" />
|
||||||
<MobileJoystickPanel layout="portrait" />
|
<MobileJoystickPanel layout="portrait" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ export default function RightPaneTabs({ layout, onOpenHelpOverlay }) {
|
|||||||
<TabPanel id="telemetry">
|
<TabPanel id="telemetry">
|
||||||
<div className="space-y-0.5">
|
<div className="space-y-0.5">
|
||||||
<ControlSummary />
|
<ControlSummary />
|
||||||
<RoomCameraPanel defaultOrientation="horizontal" panelId="rightpane-telemetry" />
|
|
||||||
<HomeAssistantControls />
|
<HomeAssistantControls />
|
||||||
|
<RoomCameraPanel defaultOrientation="horizontal" panelId="rightpane-telemetry" />
|
||||||
<TelemetryPanel />
|
<TelemetryPanel />
|
||||||
</div>
|
</div>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
|
|||||||
Reference in New Issue
Block a user