preactjs / preact-www

:book: Preact documentation website.
https://preactjs.com
MIT License
358 stars 500 forks source link

refactor: Hide banner on short viewports (like rotated phones) #1131

Closed rschristian closed 5 months ago

rschristian commented 5 months ago

Closes #847

First two are from this PR preview, last is from the linked issue:

With hidden toolbar Without Previous State
image image Image

Not sure if all mobile browsers can hide their toolsbars (that's Safari from me), but we've at least reclaimed a good portion of screen real estate. Maybe we could do some sort of expanding/collapsing header too (or in place of this), but that'd need some more thought & work.

Hopefully this isn't problematic, it's only hiding the banner in a pretty specific situation when vertical height is pretty badly needed.