ui: collapse SMS fallback fields when disabled (matching email)

SMS fields (number / quota / carrier / balance) are now hidden when the
toggle is off. Previously entered values are preserved, just hidden.
Email forwarding already had this pattern. Settings page stays compact.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-09 17:02:58 +08:00
parent d93f0294b9
commit 2744bcdb33
@@ -260,6 +260,7 @@ fun SettingsScreen(onOpenLog: () -> Unit) {
checked = smsFallback, checked = smsFallback,
) { v -> app.appScope.launch { app.settings.setSmsFallback(v) } } ) { v -> app.appScope.launch { app.settings.setSmsFallback(v) } }
if (smsFallback) {
Spacer(Modifier.size(8.dp)) Spacer(Modifier.size(8.dp))
OutlinedTextField( OutlinedTextField(
value = smsTargetInput, value = smsTargetInput,
@@ -328,6 +329,7 @@ fun SettingsScreen(onOpenLog: () -> Unit) {
) )
} }
} }
}
item { item {
SectionCard("应用图标", subtitle = "导出 App 图标后,Bark 通知可按包名显示图标") { SectionCard("应用图标", subtitle = "导出 App 图标后,Bark 通知可按包名显示图标") {