diff --git a/src/pages/Subscription.tsx b/src/pages/Subscription.tsx
index 5cb6a20..ba083b6 100644
--- a/src/pages/Subscription.tsx
+++ b/src/pages/Subscription.tsx
@@ -997,13 +997,18 @@ export default function Subscription() {
className="h-[6px] w-full overflow-hidden rounded-full"
style={{ background: g.textGhost }}
>
+ {/* scaleX (compositor) instead of width (layout-thrash).
+ Track is 64px (w-16), so 0.0625 floor = 4px minimum,
+ preserving the prior minWidth behaviour. */}
{
+ const pct = connectedDevices / subscription.device_limit;
+ return connectedDevices > 0 ? Math.max(pct, 0.0625) : 0;
+ })()})`,
background: zone.mainHex,
boxShadow: `0 0 8px ${zone.mainHex}40`,
- minWidth: connectedDevices > 0 ? '4px' : '0px',
}}
/>
@@ -1146,9 +1151,9 @@ export default function Subscription() {
style={{ background: g.trackBg }}
>
@@ -1193,10 +1198,15 @@ export default function Subscription() {
background: subscription.autopay_enabled ? zone.mainHex : g.textGhost,
}}
>
+ {/* translateX (compositor) instead of left (layout-thrash).
+ Resting position pinned at left:3px; on toggles a 23px
+ slide on the GPU. */}
@@ -1387,9 +1397,9 @@ export default function Subscription() {
style={{ background: g.trackBg }}
>