diff --git a/frontend/src/EasySwitchManager.jsx b/frontend/src/EasySwitchManager.jsx index d353e13..3a5cb96 100644 --- a/frontend/src/EasySwitchManager.jsx +++ b/frontend/src/EasySwitchManager.jsx @@ -649,29 +649,29 @@ function EasySwitchManager() { {/* Сетка карточек шлюзов для этого community */} -
+
{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 8px rgba(0,0,0,0.1)'; - e.currentTarget.style.transform = 'translateY(-2px)'; + e.currentTarget.style.boxShadow = '0 2px 6px rgba(0,0,0,0.1)'; + e.currentTarget.style.transform = 'translateY(-1px)'; } }} onMouseLeave={(e) => { @@ -681,52 +681,52 @@ function EasySwitchManager() { } }} > -
+
{/* Галочка (абсолютное позиционирование) */} {isActive && (
- +
)} {/* Метка Fastest */} -
+
{isFastest && !isActive && ( - - + + Fast )}
{/* Название шлюза */} -
+
{gw.name}
{/* Описание шлюза */} {gw.comment && ( -
+
{gw.comment}
)} {/* Протокол */} -
- {serverMeta?.provider || 'vless / xudp'} +
+ {serverMeta?.provider || 'vless'}
{/* Метрика (пинг) */} -
+
{ping}