mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
style(p2p options settings): adjust textarea heights and dynamic rows
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user