Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce menu render jank #336

Merged
merged 3 commits into from
Dec 13, 2017
Merged

Conversation

olizilla
Copy link
Member

@olizilla olizilla commented Dec 13, 2017

Browser menu rendering in brave is super janky. This PR in-lines width and overflow styles to the body element of the menu page so the browser has a clue as early as possible how wide the menu will be. Brave renders a scroll bar on the menu by default, so we disable that too.

The height of our menu changes, which can also causes some render jank, so it'd be worth considering marking menu items as visually disabled rather then pulling them out of the menu when not available.

Also adds explicit color styles to hopefully fix #329 though I've not been able to test it.

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yess yess yess 👍
#329 is no more:

2017-12-13-235826_860x1421_scrot

@lidel lidel merged commit 86e77b3 into ipfs:master Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Harden CSS to be OS-agnostic
2 participants