crash fix

This commit is contained in:
legop3
2026-06-08 20:59:58 -04:00
parent 58029fd3a1
commit d2565eaf40
3 changed files with 2 additions and 4 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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';