SleekplanSleekplan
All ideas

Safe-Area Padding in fullscreen (PWA) mode

When a fullscreen-capable web app is installed as a PWA to the homescreen of iOS and Android devices, it is opened in full-screen mode (without a browser chrome). The header of the Sleek widget should have the following css property to ensure content is accessible: padding-top: env(safe-area-inset-top)

Activity · 5
Jonathan Ochmann
Jonathan Ochmann
Marco
Marco
@monokee this has been added to the embed, we have created a new version for in-app mobile views. You need to add .../?style=mobile to your URL :)
Marcomarked this as In Progress·
Marcomarked this as Completed·
Marcomarked this as In Progress·
Jonathan Ochmann
Jonathan Ochmann
Any progress on this?
Jonathan Ochmann
Jonathan Ochmann
@marco It would be greatly appreciated if this issue could be addressed. There are a few solutions I would like to propose: 1) Add a "margin-top" of "env(safe-area-inset-top)" to the widget. 2) Give us manual control over how the widget is embedded. That way we could append it to a custom container that has the appropriate margins. 3.) Provide the option for custom CSS for the widget. This would also allow us to fix the currently dysfunctional dark theme. Options 2 and 3 would be ideal if you don't plan to natively support fullscreen apps on notch based mobile hardware. (Which includes most high end iOS and Android devices in 2023). Thank you.
Jonathan Ochmann
Jonathan Ochmann
Since this was never fixed, here is a hack I've been using for the sleekplan widget in the Color.io PWA: @supports (top: env(safe-area-inset-top)) { #sleek-widget-wrap { --slk-offset-top: calc(env(safe-area-inset-top) + 50px); top: var(--slk-offset-top)!important; height: calc(100% - var(--slk-offset-top))!important; } } Note that the additional 50px offset is specific to the Color.io app.

More in Bug