UserAddressView: move "contacts remain connected" footer out; pad welcome message field; wrap Save in card

Three SimpleX address fixes:
- "Your contacts will remain connected" SectionTextFooter moved out of
  the DeleteAddressButton SectionView (was rendering inside the card).
- Address settings > welcome message field gets 10dp vertical
  contentPadding on its SectionView so the TextEditor doesn't sit flush
  against the card top/bottom.
- Address settings > Save action wrapped in its own SectionView so it
  reads as a single-item card.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
another-simple-pixel
2026-05-16 09:31:31 -07:00
parent c25f36a900
commit 58eeb66281
@@ -371,8 +371,8 @@ private fun UserAddressLayout(
SectionDividerSpaced(maxBottomPadding = false)
SectionView {
DeleteAddressButton(deleteAddress)
SectionTextFooter(stringResource(MR.strings.your_contacts_will_remain_connected))
}
SectionTextFooter(stringResource(MR.strings.your_contacts_will_remain_connected))
}
}
}
@@ -512,13 +512,18 @@ private fun ModalData.UserAddressSettings(
}
SectionDividerSpaced()
SectionView(stringResource(MR.strings.address_welcome_message).uppercase()) {
SectionView(
stringResource(MR.strings.address_welcome_message).uppercase(),
contentPadding = PaddingValues(vertical = DEFAULT_PADDING_HALF),
) {
AutoReplyEditor(addressSettingsState)
}
SectionDividerSpaced(maxTopPadding = true, maxBottomPadding = false)
saveAddressSettingsButton(addressSettingsState.value == savedAddressSettingsState.value) {
saveAddressSettings(addressSettingsState.value, savedAddressSettingsState)
SectionView {
saveAddressSettingsButton(addressSettingsState.value == savedAddressSettingsState.value) {
saveAddressSettings(addressSettingsState.value, savedAddressSettingsState)
}
}
}
}