Replies: 2 comments
-
|
Altough you can create custom media screen, I would also find this to be quite useful in my applications. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Is there any possibility to make it work only on iOS devices? I see that Android devices don't need this bottom padding/margin fix when running in standalone mode. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When users choose to install a PWA as a shortcut in either iOS or Android, some elements might need to be adjusted accordingly. For example: if something is positioned with
absolute bottom-0, in a standalone PWA mode these components might needabsolute bottom-*to offset iOS or Android controls that might overlap the PWA components.Example of overlapping components which would be fine in the browser, but not in PWA standalone:
With adjustments:
The way we can detect if a website is running as a PWA standalone app is through
(display-mode: standalone)media query. I've extended the tailwind configuration to give mepwa:*utility classes.I wonder if it wouldn't be useful to have this (or a similar solution) for such scenarios.
Beta Was this translation helpful? Give feedback.
All reactions