update account settings design

This commit is contained in:
plebeius.eth
2024-05-10 22:23:18 +02:00
parent b2bfc2440d
commit 26b1e06614
2 changed files with 23 additions and 8 deletions
@@ -144,6 +144,17 @@
.accountSettings button { .accountSettings button {
cursor: pointer; cursor: pointer;
}
.saveResetAccount {
margin-top: 15px;
}
.accountSettings textarea {
margin-bottom: 5px;
}
.accountSettings div {
margin-top: 5px; margin-top: 5px;
} }
@@ -151,9 +162,8 @@
color: red; color: red;
} }
.accountSettings select { .accountSettings .createAccount {
display: block; margin-left: 5px;
margin-bottom: 10px;
} }
@media (max-width: 640px) { @media (max-width: 640px) {
@@ -254,13 +254,18 @@ const AccountSettings = () => {
return ( return (
<div className={styles.accountSettings}> <div className={styles.accountSettings}>
<select value={account?.name} onChange={(e) => setActiveAccount(e.target.value)}> <div>
{accountsOptions} <select value={account?.name} onChange={(e) => setActiveAccount(e.target.value)}>
</select> {accountsOptions}
Account Data Preview: </select>
<button className={styles.createAccount} onClick={_createAccount}>
+
</button>
</div>
<div></div>
<textarea value={text} onChange={(e) => setText(e.target.value)} autoCorrect='off' autoComplete='off' spellCheck='false' /> <textarea value={text} onChange={(e) => setText(e.target.value)} autoCorrect='off' autoComplete='off' spellCheck='false' />
<div> <div>
<button onClick={_createAccount}>Create</button> a new account <button onClick={saveAccount}>Save</button> <button onClick={() => setText(accountJson)}>Reset</button>
</div> </div>
<div> <div>
<button onClick={_importAccount}>Import</button> full account data <button onClick={_importAccount}>Import</button> full account data