mirror of
https://github.com/dergigi/boris.git
synced 2025-12-26 19:14:52 +01:00
refactor(settings): simplify Relays section by removing summary text
- Remove 'X active relays' summary count - Remove 'Active' heading for cleaner UI - Keep 'Recently Seen' heading for context since those are different
This commit is contained in:
@@ -35,28 +35,9 @@ const RelaySettings: React.FC<RelaySettingsProps> = ({ relayStatuses, onClose })
|
||||
return (
|
||||
<div className="settings-section">
|
||||
<h3>Relays</h3>
|
||||
|
||||
<div className="relay-summary" style={{ marginBottom: '1rem' }}>
|
||||
<p style={{ color: 'var(--text-secondary)', fontSize: '0.9rem' }}>
|
||||
{activeRelays.length} active relay{activeRelays.length !== 1 ? 's' : ''}
|
||||
{recentRelays.length > 0 &&
|
||||
` · ${recentRelays.length} recently seen`
|
||||
}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{activeRelays.length > 0 && (
|
||||
<div className="relay-group" style={{ marginBottom: '1.5rem' }}>
|
||||
<h4 style={{
|
||||
fontSize: '0.85rem',
|
||||
fontWeight: 600,
|
||||
color: 'var(--text-secondary)',
|
||||
marginBottom: '0.75rem',
|
||||
textTransform: 'uppercase',
|
||||
letterSpacing: '0.05em'
|
||||
}}>
|
||||
Active
|
||||
</h4>
|
||||
<div className="relay-list">
|
||||
{activeRelays.map((relay) => (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user