Pin reader and tab bars to their own compositing layer
Build and Push Docker Image / build-and-push (push) Successful in 5m1s
Build and Push Docker Image / build-and-push (push) Successful in 5m1s
iOS Safari/PWA can strand fixed and sticky bars mid-screen after the toolbar collapses or the page rubber-bands. Add a .fixed-bar class (translateZ(0), will-change: transform) to the reader top/bottom bars and the phone tab bar. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
593769b4f6
commit
d9891ff9fe
3 files changed
+11
-3
No files matched your search
@@ -79,6 +79,14 @@ input,
|
||||
|
||||
/* Top bars leave room for the status bar / notch when the app is installed or full-screen
|
||||
(env() is 0 in an ordinary browser tab). */
|
||||
/* iOS Safari/PWA can leave fixed and sticky bars stranded mid-screen after the toolbar collapses or the page
|
||||
rubber-bands. Giving them their own compositing layer keeps them pinned to the viewport edge. */
|
||||
.fixed-bar {
|
||||
transform: translateZ(0);
|
||||
-webkit-transform: translateZ(0);
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.safe-top {
|
||||
padding-top: env(safe-area-inset-top, 0px);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user