Skip to content

A free, self-hostable news aggregator…

fix(themes): keep article nav bar pinned to bottom in iOS standalone PWAs (#8933)

Antonio Santos5c5b0b9e66b5
diff --git a/CREDITS.md b/CREDITS.md
index 264574025..625705b1b 100644
--- a/CREDITS.md
+++ b/CREDITS.md
@@ -31,6 +31,7 @@ People are sorted by name so please keep this order.
* [Andy Valencia](https://github.com/vandys): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:vandys), [Web](https://www.vsta.org/andy/)
* [Annika Backstrom](https://github.com/abackstrom): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:abackstrom), [Web](https://sixohthree.com/)
* [Anton Smirnov](https://github.com/arokettu): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:arokettu), [Web](https://sandfox.me/)
+* [Antonio Santos](https://github.com/Otolock): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:Otolock), [Web](https://antoniosantos.io/)
* [ArthurHoaro](https://github.com/ArthurHoaro): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:ArthurHoaro)
* [Artur Weigandt](https://github.com/Art4): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:Art4), [Web](https://ruhr.social/@Art4)
* [ASMfreaK](https://github.com/ASMfreaK): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:ASMfreaK)
diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.css
index 8f2a0aec1..4b4502f83 100644
--- a/p/themes/base-theme/frss.css
+++ b/p/themes/base-theme/frss.css
@@ -1927,6 +1927,10 @@ a.website:hover .favicon {
width: var(--width-aside);
padding-bottom: env(safe-area-inset-bottom);
z-index: 50;
+ /* Promote to its own compositor layer so iOS standalone PWAs keep the bar
+ pinned to the viewport after a programmatic scroll (e.g. prev/next entry),
+ working around a WebKit bug that otherwise lets it drift to mid-screen. */
+ transform: translateZ(0);
}
.aside:not(.visible) ~ #nav_entries {
diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.css
index 389ff6175..9f48880e9 100644
--- a/p/themes/base-theme/frss.rtl.css
+++ b/p/themes/base-theme/frss.rtl.css
@@ -1927,6 +1927,10 @@ a.website:hover .favicon {
width: var(--width-aside);
padding-bottom: env(safe-area-inset-bottom);
z-index: 50;
+ /* Promote to its own compositor layer so iOS standalone PWAs keep the bar
+ pinned to the viewport after a programmatic scroll (e.g. prev/next entry),
+ working around a WebKit bug that otherwise lets it drift to mid-screen. */
+ transform: translateZ(0);
}
.aside:not(.visible) ~ #nav_entries {