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:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user