fix: add systemBarsPadding to prevent overlap with status bar and navigation bar

Both SshHost (connection list) and SshTerminalScreen (terminal UI)
now safely inset from system navigation bars.
This commit is contained in:
茂之钳
2026-05-23 15:14:22 +00:00
parent 0a38c43d89
commit b3dca582af
2 changed files with 2 additions and 2 deletions
@@ -140,7 +140,7 @@ fun SshHost(
Box( Box(
modifier = modifier.fillMaxSize().background(bg) modifier = modifier.fillMaxSize().background(bg)
) { ) {
Column(modifier = Modifier.fillMaxSize()) { Column(modifier = Modifier.fillMaxSize().systemBarsPadding()) {
Surface( Surface(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
color = surface, shadowElevation = 0.dp color = surface, shadowElevation = 0.dp
@@ -403,7 +403,7 @@ fun SshTerminalScreen(
.fillMaxSize() .fillMaxSize()
.background(bg) .background(bg)
) { ) {
Column(modifier = Modifier.fillMaxSize()) { Column(modifier = Modifier.fillMaxSize().systemBarsPadding()) {
// ── 终端顶栏 ── // ── 终端顶栏 ──
Surface( Surface(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),