Page MenuHomePhabricator

[Cashtab] Improve minified nav header to prevent content jumping
ClosedPublic

Authored by bytesofman on May 6 2024, 22:44.

Details

Summary

T3564

Use position: sticky to stop content jumping when the minified header is activated.

Test Plan

npm test

visit https://cashtab-local-dev.netlify.app/ and scroll, no content jumping

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bytesofman published this revision for review.May 6 2024, 22:52
bytesofman added inline comments.
cashtab/src/components/App/App.css
57 ↗(On Diff #47656)

we can't use sticky if there is hidden overflow in any parent element

emack added a subscriber: emack.

Much better. Although I noticed it is scrolling even when there isn't content down below, however that's in prod too so not specific to this diff but nontheless I think previously we tried to stop that?

This revision is now accepted and ready to land.May 7 2024, 05:57

Much better. Although I noticed it is scrolling even when there isn't content down below, however that's in prod too so not specific to this diff but nontheless I think previously we tried to stop that?

yeah I think there are still some more optimizations available. I haven't figured out what's causing this, could be unique to browsers.