mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MgMpRcWj6y82LxLiwcuzmN
This commit is contained in:
+4
@@ -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,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user