Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ html.dark {
--bg-subtle: rgba(255,255,255,0.04);
}

/* WebKit reports dvh/innerHeight without the status-bar strip for installed
home-screen apps even though the layout still starts at the screen's top.
In standalone mode there is no browser toolbar to make vh unstable, and vh
includes that missing strip. The keyboard hook temporarily overrides this
custom property with visualViewport.height while an editor is focused. */
@media (display-mode: standalone) {
:root {
--app-viewport-height: 100vh;
}
}

.catppuccin-file-icon {
display: block;
flex-shrink: 0;
Expand Down
1 change: 1 addition & 0 deletions components/MobilePwaLayout.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ test("configures iOS standalone mode to use the full screen", () => {
assert.match(layoutSource, /statusBarStyle: "black-translucent"/);
assert.match(layoutSource, /viewportFit: "cover"/);
assert.match(layoutSource, /interactiveWidget: "resizes-content"/);
assert.match(cssSource, /@media \(display-mode: standalone\) \{[\s\S]*?--app-viewport-height: 100vh;/);
});

test("tracks the visual viewport while the software keyboard is open", () => {
Expand Down