Inconsistent navbar/anchor behaviour
tenleftfingers opened this issue · 0 comments
tenleftfingers commented
Hí! Thanks for this excellent template. It's really elegant.
Slight problem: Clicking links in the navbar can act in one of two ways depending on page content.
Situation 1 : page content is less than viewport height
In this case, clicking the navbar link changes the page content nice and smoothly with the navbar is still displayed.
Screen.Recording.2022-02-08.at.4.05.44.p.m.mov
Situation 2: page content is greater than viewport height
In this case, clicking the navbar link changes the page content, but the navbar jumps upward out of view.
Screen.Recording.2022-02-08.at.4.06.28.p.m.mov
Is it possible to get the situation 1 behaviour always? Here is code to test on, since I haven't deployed yet
index.html.txt
.