From b3e5e9e69332b8e529ec89d4aed40f6f9e67b005 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 23 Jun 2026 18:59:30 +0000 Subject: [PATCH] fix: inset the browser launcher omnibox below the status bar The launcher's address field is a plain Row in the Scaffold topBar slot, so (unlike a Material3 TopAppBar) it didn't apply the status-bar inset and drew under the status bar. Add statusBarsPadding() to the omnibox row. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01MgMpRcWj6y82LxLiwcuzmN --- .../amethyst/ui/screen/loggedIn/browser/BrowserScreen.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/browser/BrowserScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/browser/BrowserScreen.kt index a39fd6e6fb..b58cd8c847 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/browser/BrowserScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/browser/BrowserScreen.kt @@ -27,6 +27,7 @@ import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.statusBarsPadding import androidx.compose.foundation.text.KeyboardActions import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.material3.IconButton @@ -158,6 +159,9 @@ private fun OmniBar( modifier = Modifier .fillMaxWidth() + // The omnibox is a plain Row in the topBar slot (not a Material3 TopAppBar), so it must + // apply the status-bar inset itself — otherwise it draws under the status bar. + .statusBarsPadding() .padding(horizontal = 4.dp, vertical = 4.dp), verticalAlignment = Alignment.CenterVertically, ) {