Skip to content

Commit d879b7e

Browse files
committed
fix: adjust icon size in network protocol options for better alignment
- Reduce status icon font size from 1.2em to 0.9em - Adjust container width to 1.2rem to match checkbox size - Center icons within container for better visual alignment - Improve consistency between checkbox and status icon sizing
1 parent 5166a7b commit d879b7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/relay-settings/sections/NetworkSection/components/ProtocolSelect.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const ProtocolSelect: React.FC<ProtocolSelectProps> = ({
2626
{
2727
label: (
2828
<div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
29-
<span style={{ fontSize: '1.2em', minWidth: '1.5rem' }}>
29+
<span style={{ fontSize: '0.9em', minWidth: '1.2rem', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
3030
{selectedProtocols.includes('WebSocket') ? '✅' : '❌'}
3131
</span>
3232
<span style={{ fontSize: '.85rem' }}>WebSocket</span>
@@ -37,7 +37,7 @@ export const ProtocolSelect: React.FC<ProtocolSelectProps> = ({
3737
{
3838
label: (
3939
<div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
40-
<span style={{ fontSize: '1.2em', minWidth: '1.5rem' }}>
40+
<span style={{ fontSize: '0.9em', minWidth: '1.2rem', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
4141
{selectedProtocols.includes('QUIC') ? '✅' : '❌'}
4242
</span>
4343
<span style={{ fontSize: '.85rem' }}>Libp2p QUIC</span>

0 commit comments

Comments
 (0)