feat: extend connecting state to 8 seconds and remove subtitle text

- Increase 'Connecting' timeout from 4 to 8 seconds
- Remove explanatory subtitle 'Establishing connections...'
- Cleaner, simpler connecting state display
This commit is contained in:
Gigi
2025-10-09 20:17:29 +01:00
parent 5e56176e2d
commit 76d1d4544e

View File

@@ -32,11 +32,11 @@ export const RelayStatusIndicator: React.FC<RelayStatusIndicatorProps> = ({ rela
// Connected! Stop showing connecting state
setIsConnecting(false)
} else {
// No connections yet - show connecting for 4 seconds
// No connections yet - show connecting for 8 seconds
setIsConnecting(true)
const timeout = setTimeout(() => {
setIsConnecting(false)
}, 4000)
}, 8000)
return () => clearTimeout(timeout)
}
}, [connectedUrls.length])
@@ -70,10 +70,7 @@ export const RelayStatusIndicator: React.FC<RelayStatusIndicatorProps> = ({ rela
</div>
<div className="relay-status-text">
{isConnecting ? (
<>
<span className="relay-status-title">Connecting</span>
<span className="relay-status-subtitle">Establishing connections...</span>
</>
<span className="relay-status-title">Connecting</span>
) : offlineMode ? (
<>
<span className="relay-status-title">Offline</span>