mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
crash fix
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="Roomba Rover" />
|
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
|
||||||
<title>Roomba Rover</title>
|
<title>Roomba Rover</title>
|
||||||
<script type="module" crossorigin src="/assets/index-DVCbMND6.js"></script>
|
<script type="module" crossorigin src="/assets/index-DXzRUUQl.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-D3sOXuVW.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-D3sOXuVW.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ function BatteryBar({
|
|||||||
'absolute z-10',
|
'absolute z-10',
|
||||||
isVertical ? 'left-0 right-0 h-[2px]' : 'top-0 bottom-0 w-[2px]',
|
isVertical ? 'left-0 right-0 h-[2px]' : 'top-0 bottom-0 w-[2px]',
|
||||||
'bg-black/70',
|
'bg-black/70',
|
||||||
isWarn && !isUrgent && 'battery-tick-warn',
|
|
||||||
);
|
);
|
||||||
const markerStyle = isVertical ? { bottom: `${warnPercent}%` } : { left: `${warnPercent}%` };
|
const markerStyle = isVertical ? { bottom: `${warnPercent}%` } : { left: `${warnPercent}%` };
|
||||||
const containerClass = classNames('absolute inset-0 pointer-events-none', className);
|
const containerClass = classNames('absolute inset-0 pointer-events-none', className);
|
||||||
@@ -51,7 +50,6 @@ function BatteryBar({
|
|||||||
|
|
||||||
const isUrgent = Boolean(visual.urgentActive);
|
const isUrgent = Boolean(visual.urgentActive);
|
||||||
const isWarn = Boolean(visual.warnActive);
|
const isWarn = Boolean(visual.warnActive);
|
||||||
const shouldFlash = isUrgent || isWarn;
|
|
||||||
const animationDuration = isUrgent ? `${URGENT_FLASH_MS}ms` : isWarn ? `${WARN_FLASH_MS}ms` : undefined;
|
const animationDuration = isUrgent ? `${URGENT_FLASH_MS}ms` : isWarn ? `${WARN_FLASH_MS}ms` : undefined;
|
||||||
|
|
||||||
const fillColor = isUrgent || isWarn ? 'bg-red-500' : 'bg-emerald-500';
|
const fillColor = isUrgent || isWarn ? 'bg-red-500' : 'bg-emerald-500';
|
||||||
|
|||||||
Reference in New Issue
Block a user