mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -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-title" content="Roomba Rover" />
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -30,7 +30,6 @@ function BatteryBar({
|
||||
'absolute z-10',
|
||||
isVertical ? 'left-0 right-0 h-[2px]' : 'top-0 bottom-0 w-[2px]',
|
||||
'bg-black/70',
|
||||
isWarn && !isUrgent && 'battery-tick-warn',
|
||||
);
|
||||
const markerStyle = isVertical ? { bottom: `${warnPercent}%` } : { left: `${warnPercent}%` };
|
||||
const containerClass = classNames('absolute inset-0 pointer-events-none', className);
|
||||
@@ -51,7 +50,6 @@ function BatteryBar({
|
||||
|
||||
const isUrgent = Boolean(visual.urgentActive);
|
||||
const isWarn = Boolean(visual.warnActive);
|
||||
const shouldFlash = isUrgent || isWarn;
|
||||
const animationDuration = isUrgent ? `${URGENT_FLASH_MS}ms` : isWarn ? `${WARN_FLASH_MS}ms` : undefined;
|
||||
|
||||
const fillColor = isUrgent || isWarn ? 'bg-red-500' : 'bg-emerald-500';
|
||||
|
||||
Reference in New Issue
Block a user