From 8a3bdb0d781ee55d9a4be2b5adff5a265060f9cc Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 27 May 2026 19:21:40 +0000 Subject: [PATCH] ui(wallet): imePadding on screens whose body holds the text fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AddCashuWalletScreen, AddNwcWalletScreen, and CashuWalletSettingsScreen host their OutlinedTextFields directly in the Scaffold body — mint URL, wallet name, NWC URI, mint-recommendation add row — so the keyboard covers the field when the user taps to type. Apply the codebase's canonical insets recipe (matching AllMediaServersScreen): .padding(padding) .consumeWindowInsets(padding) .imePadding() The other new wallet screens are untouched on purpose: AddWalletScreen has no text inputs; WalletScreen + CashuWalletScreen route every input through AlertDialog (which handles its own IME); MintPickerSheet rides ModalBottomSheet which moves with the keyboard. --- .../ui/screen/loggedIn/wallet/AddCashuWalletScreen.kt | 4 ++++ .../amethyst/ui/screen/loggedIn/wallet/AddNwcWalletScreen.kt | 4 ++++ .../ui/screen/loggedIn/wallet/CashuWalletSettingsScreen.kt | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/AddCashuWalletScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/AddCashuWalletScreen.kt index b326f5d767..838e13f554 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/AddCashuWalletScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/AddCashuWalletScreen.kt @@ -24,9 +24,11 @@ import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.consumeWindowInsets import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.imePadding import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width @@ -151,6 +153,8 @@ fun AddCashuWalletScreen( Modifier .fillMaxSize() .padding(padding) + .consumeWindowInsets(padding) + .imePadding() .verticalScroll(rememberScrollState()) .padding(16.dp), ) { diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/AddNwcWalletScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/AddNwcWalletScreen.kt index 8dd5a7e8d6..ac9d53d132 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/AddNwcWalletScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/AddNwcWalletScreen.kt @@ -23,9 +23,11 @@ package com.vitorpamplona.amethyst.ui.screen.loggedIn.wallet import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.consumeWindowInsets import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.imePadding import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width @@ -105,6 +107,8 @@ fun AddNwcWalletScreen( Modifier .fillMaxSize() .padding(padding) + .consumeWindowInsets(padding) + .imePadding() .padding(horizontal = 16.dp), ) { Spacer(modifier = Modifier.height(16.dp)) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/CashuWalletSettingsScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/CashuWalletSettingsScreen.kt index 003acbf3ca..3d9fe4b3c4 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/CashuWalletSettingsScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/CashuWalletSettingsScreen.kt @@ -25,9 +25,11 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.consumeWindowInsets import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.imePadding import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width @@ -128,6 +130,8 @@ fun CashuWalletSettingsScreen( Modifier .fillMaxSize() .padding(padding) + .consumeWindowInsets(padding) + .imePadding() .padding(horizontal = 16.dp), verticalArrangement = Arrangement.spacedBy(12.dp), ) {