Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile): stop iOS blurring the top bar of the home-screen app

Elian Dorane6d427b6b816
diff --git a/apps/client/src/stylesheets/theme-next/ios.css b/apps/client/src/stylesheets/theme-next/ios.css
index 1996cfae18..740134c086 100644
--- a/apps/client/src/stylesheets/theme-next/ios.css
+++ b/apps/client/src/stylesheets/theme-next/ios.css
@@ -282,8 +282,15 @@ body.mobile.ios {
}
}
+ /* WebKit tints the status bar from a fixed or sticky element at the top edge and blurs the
+ page under it otherwise. Neither parent scrolls, so `sticky` leaves the layout as is. */
+ .quick-search,
+ .note-split:not(.options) > .title-row {
+ position: sticky;
+ top: 0;
+ }
+
.note-split:not(.options) > .title-row {
- position: relative;
z-index: 999;
isolation: isolate;
margin-bottom: calc(-1 * var(--mobile-title-row-height));