fix(ui): iOS PWA should take full screen height #2391
Reference in New Issue
Block a user
Delete Branch "bugfix/ui-pwa-ios"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR fixes #2342, which comprises these issues:
Changes
env(safe-area-inset-top)as top margin instead of top padding forhtml.safe-area-inset-bottompadding from the bottom navigation component sincehtmlhas it.bodyadapts background color by dynamically setting it tobg-surface.After
Thanks for the fix here, but this seems to cause several visual regressions to the desktop version of the app. Below are just a few examples, but I'm sure there are several more:
We need to be super careful editing these files as they apply to many views across the app.
@zachgoll Thanks for the feedback. My bad for removing
h-fullfrombody, resulting in the page not taking full height.I have reverted some of the changes and only focus on 4 things:
env(safe-area-inset-top)as top margin instead of top padding forhtml.safe-area-inset-bottompadding from the bottom navigation component sincehtmlhas it.bodyadapts background color by dynamically setting it tobg-surface.Edit: added dialog padding.
@KenTandrian can you fix also modals? I can't close.
@albertorizzi done!
Wow! Thanks a lot!😍
Your PR https://github.com/maybe-finance/maybe/pull/2410 fix also the Current Market Price "Unknown" in these screens?
Yes, I think that should be covered since
@holding.security.current_priceis retrieved from the samefind_or_fetch_pricemethod.Is it possible to improve the mobile view of the Holdings tab?
I don't think it's related to PWA screen height? It should be a separate issue.
Hi @zachgoll, a gentle follow up on this PR.
I've pushed fixes to address the desktop regressions you pointed out and have also resolved the modal issue reported by @albertorizzi. I believe all requested changes are complete.
Please let me know if there's anything else needed when you have a moment. Thanks!
Hey @KenTandrian, sorry this is a bit of a tough one to review just given this will affect every page in our app.
I haven't had a chance to dig deeply into this yet, but my gut tells me we really need to keep that existing "global padding" intact on our
htmlelement, then apply specific padding/margin adjustments to things like our Dialog to make them look good on mobile. Changing the global property to margin introduces a lot of weird UI states on "full-bleed" sections as I had screenshotted earlier, so I don't think we should be using that here.So I think in summary what we should probably do is:
Hey @zachgoll, it's tricky to implement this without touching the
htmlelement at all.To illustrate why, I have reverted all my changes and added borders to highlight the default sizing:
htmlbodynav(mobile bottom nav)As you can see from the screenshot, the
htmlelement isn't taking up the full height of the screen by default. This then prevents thebodyandnavelements from reaching the bottom as well. Because of this, I don't think changes isolated to just the dialog or mobile nav would be enough to resolve the layout issue.Do you have any ideas on how we could address the
htmlelement's height?Pull request closed