diff --git a/src/shell/WalletCard.module.css b/src/shell/WalletCard.module.css index 922a949..5ce4ca8 100644 --- a/src/shell/WalletCard.module.css +++ b/src/shell/WalletCard.module.css @@ -61,6 +61,36 @@ color: var(--color-ink); } +.accountId { + font-size: 12px; + color: #6b7280; + margin-bottom: var(--space-2); + word-break: break-all; +} + +.sendRow { + display: flex; + gap: var(--space-2); + margin-bottom: var(--space-2); +} + +.input { + flex: 1; + padding: var(--space-2); + border: 1px solid #d0d5dd; + border-radius: 8px; + font-size: 14px; +} + +.amountInput { + max-width: 110px; +} + +.sendStatus { + font-size: 13px; + margin: 0; +} + /* Compact mode: a slim persistent balance chip for non-home routes - no * full-bleed hero slab repeated on every mini-app sub-screen, and no * history panel (the full ledger lives on the home screen). */ diff --git a/src/shell/WalletCard.tsx b/src/shell/WalletCard.tsx index 731bfb3..46bd83c 100644 --- a/src/shell/WalletCard.tsx +++ b/src/shell/WalletCard.tsx @@ -78,14 +78,6 @@ export function WalletCard({ compact = false }: WalletCardProps = {}) { } } - const inputStyle = { - flex: 1, - padding: 8, - border: "1px solid #d0d5dd", - borderRadius: 8, - fontSize: 14, - } as const; - return (
@@ -102,17 +94,17 @@ export function WalletCard({ compact = false }: WalletCardProps = {}) { {!compact && accountId !== undefined && (
Send credits
-
+
Your ID: {accountId}
-
+
setRecipient(e.target.value)} - style={inputStyle} + className={styles.input} /> setAmountInput(e.target.value)} - style={{ ...inputStyle, maxWidth: 110 }} + className={`${styles.input} ${styles.amountInput}`} />
{sendStatus && ( -

+

{sendStatus}

)}