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 { .ipfsGatewaysSettings textarea {
min-height: 80px; height: unset;
height: 80px;
} }
.pubsubProvidersSettings textarea { .pubsubProvidersSettings textarea {
min-height: 50px; height: unset;
height: 50px;
} }
.blockchainProvidersSettings textarea { .blockchainProvidersSettings textarea {
min-height: 50px; height: unset;
height: 50px;
} }
.content button { .content button {
@@ -32,6 +32,7 @@ const IPFSGatewaysSettings = ({ ipfsGatewayUrlsRef, mediaIpfsGatewayUrlRef }: Se
autoCorrect='off' autoCorrect='off'
autoComplete='off' autoComplete='off'
spellCheck='false' spellCheck='false'
rows={ipfsGatewayUrls?.length || 1}
/> />
</div> </div>
<span className={styles.settingTip}>NFT profile pics gateway</span> <span className={styles.settingTip}>NFT profile pics gateway</span>
@@ -68,6 +69,7 @@ const PubsubProvidersSettings = ({ pubsubProvidersRef }: SettingsProps) => {
autoCapitalize='off' autoCapitalize='off'
autoComplete='off' autoComplete='off'
spellCheck='false' spellCheck='false'
rows={pubsubHttpClientsOptions?.length || 1}
/> />
</div> </div>
); );
@@ -85,15 +87,36 @@ const BlockchainProvidersSettings = ({ ethRpcRef, solRpcRef, maticRpcRef }: Sett
<div className={styles.blockchainProvidersSettings}> <div className={styles.blockchainProvidersSettings}>
<span className={styles.settingTip}>Ethereum RPC, for .eth domains</span> <span className={styles.settingTip}>Ethereum RPC, for .eth domains</span>
<div> <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> </div>
<span className={styles.settingTip}>Solana RPC, for .sol domains</span> <span className={styles.settingTip}>Solana RPC, for .sol domains</span>
<div> <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> </div>
<span className={styles.settingTip}>Polygon RPC, for avatar NFTs</span> <span className={styles.settingTip}>Polygon RPC, for avatar NFTs</span>
<div> <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>
</div> </div>
); );