From 396f814cbdfae24bad3da8ad29d34ae9196593b9 Mon Sep 17 00:00:00 2001 From: Fringg Date: Fri, 27 Feb 2026 09:31:22 +0300 Subject: [PATCH] fix: remove devices stat block, stretch countdown to full width Remove the separate devices count card from the stats row since device info is already shown in the connect-device card above. Stretch the countdown timer to full width with timer on the left and expiry date on the right. Revert squeezed font sizes now that space is available. --- src/pages/Subscription.tsx | 141 ++++++++++++++----------------------- 1 file changed, 51 insertions(+), 90 deletions(-) diff --git a/src/pages/Subscription.tsx b/src/pages/Subscription.tsx index fcef62e..633d7af 100644 --- a/src/pages/Subscription.tsx +++ b/src/pages/Subscription.tsx @@ -107,55 +107,57 @@ const CountdownTimer = memo(function CountdownTimer({ {t('subscription.expired')} ) : ( -
- {countdown.days > 0 && ( - <> - - {countdown.days} - - - {t('subscription.daysShort')} - - - )} - - {String(countdown.hours).padStart(2, '0')} - - - : - - - {String(countdown.minutes).padStart(2, '0')} - - - : - - - {String(countdown.seconds).padStart(2, '0')} - +
+
+ {countdown.days > 0 && ( + <> + + {countdown.days} + + + {t('subscription.daysShort')} + + + )} + + {String(countdown.hours).padStart(2, '0')} + + + : + + + {String(countdown.minutes).padStart(2, '0')} + + + : + + + {String(countdown.seconds).padStart(2, '0')} + +
+
+ {t('subscription.expiresAt')}: {formattedDate} +
)} -
- {t('subscription.expiresAt')}: {formattedDate} -
); }); @@ -753,54 +755,13 @@ export default function Subscription() { )} - {/* ─── Stats Row ─── */} -
- {/* Countdown timer — isolated to prevent 1s re-renders of entire page */} + {/* ─── Countdown ─── */} +
- - {/* Devices */} -
-
-
- -
- {t('subscription.devices')} -
-
- - {connectedDevices} - - - / {subscription.device_limit} - -
-
{/* ─── Locations ─── */}