style(p2p options settings): adjust textarea heights and dynamic rows

This commit is contained in:
plebeius
2026-01-02 15:43:01 +01:00
parent 6724f91c79
commit dd3bdf24ab
2 changed files with 29 additions and 9 deletions
@@ -18,18 +18,15 @@
}
.ipfsGatewaysSettings textarea {
min-height: 80px;
height: 80px;
height: unset;
}
.pubsubProvidersSettings textarea {
min-height: 50px;
height: 50px;
height: unset;
}
.blockchainProvidersSettings textarea {
min-height: 50px;
height: 50px;
height: unset;
}
.content button {
@@ -32,6 +32,7 @@ const IPFSGatewaysSettings = ({ ipfsGatewayUrlsRef, mediaIpfsGatewayUrlRef }: Se
autoCorrect='off'
autoComplete='off'
spellCheck='false'
rows={ipfsGatewayUrls?.length || 1}
/>
</div>
<span className={styles.settingTip}>NFT profile pics gateway</span>
@@ -68,6 +69,7 @@ const PubsubProvidersSettings = ({ pubsubProvidersRef }: SettingsProps) => {
autoCapitalize='off'
autoComplete='off'
spellCheck='false'
rows={pubsubHttpClientsOptions?.length || 1}
/>
</div>
);
@@ -85,15 +87,36 @@ const BlockchainProvidersSettings = ({ ethRpcRef, solRpcRef, maticRpcRef }: Sett
<div className={styles.blockchainProvidersSettings}>
<span className={styles.settingTip}>Ethereum RPC, for .eth domains</span>
<div>
<textarea defaultValue={ethRpcDefaultValue} ref={ethRpcRef} autoCorrect='off' autoComplete='off' spellCheck='false' />
<textarea
defaultValue={ethRpcDefaultValue}
ref={ethRpcRef}
autoCorrect='off'
autoComplete='off'
spellCheck='false'
rows={chainProviders?.['eth']?.urls?.length || 1}
/>
</div>
<span className={styles.settingTip}>Solana RPC, for .sol domains</span>
<div>
<textarea defaultValue={solRpcDefaultValue} ref={solRpcRef} autoCorrect='off' autoComplete='off' spellCheck='false' />
<textarea
defaultValue={solRpcDefaultValue}
ref={solRpcRef}
autoCorrect='off'
autoComplete='off'
spellCheck='false'
rows={chainProviders?.['sol']?.urls?.length || 1}
/>
</div>
<span className={styles.settingTip}>Polygon RPC, for avatar NFTs</span>
<div>
<textarea defaultValue={maticRpcDefaultValue} ref={maticRpcRef} autoCorrect='off' autoComplete='off' spellCheck='false' />
<textarea
defaultValue={maticRpcDefaultValue}
ref={maticRpcRef}
autoCorrect='off'
autoComplete='off'
spellCheck='false'
rows={chainProviders?.['matic']?.urls?.length || 1}
/>
</div>
</div>
);