git-graph icon indicating copy to clipboard operation
git-graph copied to clipboard

refactor: modify top nav

Open tusharnankani opened this issue 2 years ago • 4 comments

Please add some padding.

The OG page looks off.

image

Even this.

image

Also, even if you do, I think you should go back to the previous one.

This reduces the viewing area. Doesn't look the best.

tusharnankani avatar Apr 12 '22 18:04 tusharnankani

There is a fix to this, though.

You show the top nav when the user scrolls up. And when we are scrolling normally, hide it.

tusharnankani avatar Apr 12 '22 18:04 tusharnankani

Good ideas, thank you @tusharnankani!

Added padding.

Implemented a hacky solution for hiding the header. I will have to change it later. I'm quite tired after not being able to figure out a proper way for quite some time.

HarshKapadia2 avatar Apr 12 '22 22:04 HarshKapadia2

Can you explain what is hacky in this PR? I can't seem to understand what is.

tusharnankani avatar Apr 19 '22 21:04 tusharnankani

Well, it should be a scroll event and not a wheel event. Also, the current wheel implementation in the project is a little buggy. It's just hacky overall - getting the desired effect through an unsuited implementation.

HarshKapadia2 avatar Apr 28 '22 07:04 HarshKapadia2