Skip to content

Commit b407b1e

Browse files
committed
fix(ui): keep toolbar content bounds inside the safe drawing area
1 parent e02a66a commit b407b1e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎app/src/main/java/com/system/location/service/ui/navigation/PortalAppShell.kt‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ internal fun PortalAppShell(drawer: DrawerState, destination: Int, selectedSecti
7979
Icon(painterResource(if (topLevel) R.drawable.ic_home_menu else R.drawable.baseline_arrow_back_24),
8080
if (topLevel) "打开导航菜单" else "返回")
8181
}
82-
}, windowInsets = WindowInsets.safeDrawing.only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal),
83-
modifier = Modifier.testTag("portal_toolbar"))
82+
}, windowInsets = WindowInsets(0),
83+
modifier = Modifier.windowInsetsPadding(
84+
WindowInsets.safeDrawing.only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal)
85+
).testTag("portal_toolbar"))
8486
}
8587
}
8688
}

0 commit comments

Comments
 (0)