feat: restructure Leave Server section with improved layout and visual hierarchy

This commit is contained in:
2025-10-29 16:33:51 +01:00
parent f77e8ca158
commit f10b51a145
@@ -307,7 +307,19 @@ fun SettingsScreen(
} }
} }
// Leave Server button relocated below Diagnostics section // Leave Server section
Text(
text = "Leave Server",
style = MaterialTheme.typography.titleMedium,
)
Card(
modifier = Modifier.fillMaxWidth(),
colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant),
) {
Column(
modifier = Modifier.padding(12.dp),
verticalArrangement = Arrangement.spacedBy(8.dp),
) {
Button( Button(
onClick = { showLeaveDialog = true }, onClick = { showLeaveDialog = true },
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
@@ -330,6 +342,8 @@ fun SettingsScreen(
Text("Leave Server") Text("Leave Server")
} }
} }
}
}
Card( Card(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),