This commit is contained in:
legop3
2026-01-21 13:18:32 -05:00
parent 662efb300b
commit 0600b8552c
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ export default function VideoTile({
: 0;
const overlayVisible = overcurrentActive || overlayFill > 0.01;
const overlayOpacity = clampUnit(
overlayVisible ? Math.max(overlayFill * 1.2, overcurrentActive ? 0.25 : 0.2) : 0,
overlayVisible ? Math.max(overlayFill * 1.2, overcurrentActive ? 0.6 : 0.3) : 0,
);
const overcurrentLabels = useMemo(() => {
if (!overcurrentLimiter) {
@@ -789,7 +789,7 @@ function OvercurrentOverlay({ labels, fill = 0, opacity = 1, visible = false, co
const resolvedOpacity = clampUnit(opacity);
return (
<div
className={`pointer-events-none absolute z-30 flex items-center justify-center bg-red-900/60 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${containerClass} relative`}
className={`pointer-events-none absolute z-40 flex items-center justify-center bg-red-900/80 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${containerClass} relative`}
style={{ opacity: resolvedOpacity }}
>
<div className="absolute inset-0 overflow-hidden">
+1 -1
View File
@@ -9,7 +9,7 @@ export const OVERCURRENT_GROUPS = [
export const DEFAULT_OVERCURRENT_LIMITS = {
downRatePerSec: 0.15,
upRatePerSec: 0.9,
upRatePerSec: 0.7,
releaseDelaySec: 1,
outputRateMs: 250,
};