Documenter.jl icon indicating copy to clipboard operation
Documenter.jl copied to clipboard

Clicking a link to a header when window is narrow makes the header hidden under the top menu bar.

Open KristofferC opened this issue 3 years ago • 4 comments

Try click https://pkgdocs.julialang.org/v1/environments/#4.-Working-with-Environments while having a narrow window. The result should be similar to:

gnome-shell-screenshot-fkc0r5

The header is hidden by the top bar and it is a bit confusing since you expected to see the header you got linked to. Scrolling up makes the header be revealed.

gnome-shell-screenshot-28jmcg

It would be good if you could see the header when clicking a link even if the window is narrow.

KristofferC avatar Oct 05 '22 08:10 KristofferC

I cannot reproduce this, do we still have this issue?

Hetarth02 avatar Jul 18 '24 07:07 Hetarth02

I can repro this. E.g. if you navigate to https://documenter.juliadocs.org/stable/#Package-Features

image

mortenpi avatar Jul 18 '24 10:07 mortenpi

Ok, but that header isn't fixed right? It moves when scrolling(even at top/bottom of page).

Hetarth02 avatar Jul 18 '24 10:07 Hetarth02

Ok, but that header isn't fixed right? It moves when scrolling(even at top/bottom of page).

Do you mean the top bar? The UX problem here is that the heading you'd expect to see is hidden when you navigate to the page. Ideally it should be visible. I guess there are two solutions here:

  1. Don't jump quite to the heading, but slightly higher, so that it wouldn't be hidden by the top bar.
  2. Just hide the top bar when you load the page.

I actually feel partial to (2) -- seems simpler. But it would be interesting to know how other sites that use headroom handle this.

mortenpi avatar Jul 18 '24 16:07 mortenpi