Page MenuHomePhabricator

[Cashtab] Minify and pin wallet header on scroll
ClosedPublic

Authored by bytesofman on Thu, Apr 11, 13:29.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC7eb1425ecd53: [Cashtab] Minify and pin wallet header on scroll
Summary

T2207

Show a minified version of the wallet header when user scrolls down. Include CSS improvements for alignment of items in header.

Test Plan

npm test, npm start and test scroll behavior and appearance.

npm run extension and ok there too

This diff is live at https://cashtab-local-dev.netlify.app for testing on mobile

Diff Detail

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

Event Timeline

backing out some changes, optimizing minified menu for mobile

get balance to align right if it flex wraps while minified

emack requested changes to this revision.Fri, Apr 12, 00:12
emack added a subscriber: emack.

Tested fine on desktop and extension, but on mobile it's got some cray cray clipping happening on the onboarding screen

you can test it via d15947.netlify.app

This revision now requires changes to proceed.Fri, Apr 12, 00:12

Tested fine on desktop and extension, but on mobile it's got some cray cray clipping happening on the onboarding screen

you can test it via d15947.netlify.app

dang, was seeing this on desktop as well before implementing overflow-anchor: none; -- mb not supported on mobile, or needs to be extended for more support. will take a look.

I can fix the content jumping without using the anchor rule. Needs some more thought. Might be better to just render a different component entirely instead of trying to css shim existing BalanceHeader (plus WalletLabel and associated wrappers).

Components need to be better organized to do this right.

better organization for styled components in App.js, better flex css for minified header, resolve content jump infinite css loop without use of anchor css rule

comment explaining scrolly value

add transition effect, improve width rules, minor version bump

add ellipsis overflow to wallet dropdown menu when whole name cannot be rendered

This revision is now accepted and ready to land.Sat, Apr 13, 00:47