Skip to content

Commit d76249d

Browse files
committed
Tweak hacky android "safe area"
1 parent 97b1f57 commit d76249d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

apps/browser/assets/browser.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ html, body, #main, #frame {
1212
#frame {
1313
display: flex;
1414
flex-direction: column;
15+
background: black;
1516
}
1617

1718
.urlbar {

apps/browser/src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,20 @@ fn app() -> Element {
9292
// HACK: Winit doesn't support "safe area" on Android yet.
9393
// So we just hardcode a fallback safe area.
9494
const TOP_PAD: &str = if cfg!(target_os = "android") {
95-
"50px"
95+
"30px"
96+
} else {
97+
""
98+
};
99+
const BOTTOM_PAD: &str = if cfg!(target_os = "android") {
100+
"44px"
96101
} else {
97102
""
98103
};
99104

100105
rsx!(
101106
div { id: "frame",
102107
padding_top: TOP_PAD,
108+
padding_bottom: BOTTOM_PAD,
103109
title { "Blitz Browser" }
104110
document::Link { rel: "stylesheet", href: BROWSER_UI_STYLES }
105111

0 commit comments

Comments
 (0)