mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
adjust
This commit is contained in:
@@ -50,7 +50,7 @@ export default function TelemetryPanel() {
|
||||
) : !frame ? (
|
||||
<p className="mt-1 text-[0.75rem] text-slate-400">Waiting for sensor frames…</p>
|
||||
) : (
|
||||
<div className="mt-1 space-y-1 text-base">
|
||||
<div className="mt-1 space-y-1 text-base flex">
|
||||
<Metric label="Charge" value={formatMetric(charge != null && capacity != null ? `${charge}/${capacity} mAh` : null)} />
|
||||
<Metric label="Charging" value={formatMetric(sensors.chargingState?.label)} />
|
||||
<Metric label="OI mode" value={formatMetric(sensors.oiMode?.label)} />
|
||||
@@ -98,9 +98,12 @@ export default function TelemetryPanel() {
|
||||
|
||||
function Metric({ label, value }) {
|
||||
return (
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="text-slate-400">{label}</span>
|
||||
<span className="text-slate-200">{value}</span>
|
||||
// <div className="flex items-center justify-between">
|
||||
// <span className="text-slate-400">{label}</span>
|
||||
// <span className="text-slate-200">{value}</span>
|
||||
// </div>
|
||||
<div className="bg-gray-500 rounded-sm p-0.5">
|
||||
{label}: {value}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user