From 54ef065589353c946442082f8839f017e712f1fb Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Sat, 16 May 2026 10:03:13 -0700 Subject: [PATCH] SocksProxySettings: move section text footers out of SectionView lambdas Same pre-card-chrome pattern as elsewhere: two SectionTextFooter calls ("Disable onion hosts when not supported" and the proxy-auth footer) were inside their SectionView lambdas in SocksProxySettings, so after the card chrome was added they rendered inside the white cards as inline content. Move both out so they read as captions below the corresponding cards. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../views/usersettings/networkAndServers/NetworkAndServers.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/networkAndServers/NetworkAndServers.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/networkAndServers/NetworkAndServers.kt index 821b43d8f7..f27e7ec9f4 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/networkAndServers/NetworkAndServers.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/networkAndServers/NetworkAndServers.kt @@ -483,8 +483,8 @@ fun SocksProxySettings( UseOnionHosts(onionHosts, rememberUpdatedState(networkUseSocksProxy && proxyAuthRandomUnsaved.value)) { onionHosts.value = it } - SectionTextFooter(annotatedStringResource(MR.strings.disable_onion_hosts_when_not_supported)) } + SectionTextFooter(annotatedStringResource(MR.strings.disable_onion_hosts_when_not_supported)) SectionDividerSpaced(maxTopPadding = true) @@ -514,8 +514,8 @@ fun SocksProxySettings( ) } } - SectionTextFooter(proxyAuthFooter(usernameUnsaved.value.text, passwordUnsaved.value.text, proxyAuthModeUnsaved.value, sessionMode)) } + SectionTextFooter(proxyAuthFooter(usernameUnsaved.value.text, passwordUnsaved.value.text, proxyAuthModeUnsaved.value, sessionMode)) SectionDividerSpaced(maxBottomPadding = false, maxTopPadding = true)