From ab8b30fbd4beec1ef19c858e3912b1071226ba10 Mon Sep 17 00:00:00 2001 From: shats Date: Sun, 7 Dec 2025 04:50:47 +0700 Subject: [PATCH] style: Update EasySwitchManager UI for improved layout and visual consistency, including adjustments to card dimensions, padding, and font sizes for better user experience. --- frontend/src/EasySwitchManager.jsx | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/frontend/src/EasySwitchManager.jsx b/frontend/src/EasySwitchManager.jsx index f7997d1..5ff8fa4 100644 --- a/frontend/src/EasySwitchManager.jsx +++ b/frontend/src/EasySwitchManager.jsx @@ -444,28 +444,28 @@ function EasySwitchManager() { {/* Сетка карточек ВСЕх шлюзов сервера */} -
+
{server.gateways.map((gw, idx) => { const isActive = activeGw === gw.name; const isFastest = idx === 0; const ping = 20 + idx * 10 + Math.floor(Math.random() * 15); return ( -
+
handleGatewaySelect(server.id, comm.value, gw.name)} onMouseEnter={(e) => { if (!isActive) { - e.currentTarget.style.boxShadow = '0 2px 6px rgba(0,0,0,0.1)'; - e.currentTarget.style.transform = 'translateY(-1px)'; + e.currentTarget.style.boxShadow = '0 2px 8px rgba(0,0,0,0.1)'; + e.currentTarget.style.transform = 'translateY(-2px)'; } }} onMouseLeave={(e) => { @@ -475,12 +475,12 @@ function EasySwitchManager() { } }} > -
+
{/* Галочка и метка Fastest */} -
+
{isFastest && !isActive && ( - - + + Fast )} @@ -488,25 +488,25 @@ function EasySwitchManager() { {isActive && (
- +
)}
{/* Название шлюза */} -
+
{gw.name}
{/* Протокол */} -
- {serverMeta?.provider || 'vless'} +
+ {serverMeta?.provider || 'vless / xudp'}
{/* Метрика (пинг) */} -
+
{ping}