Improve visibility of element navigation by moving it above content #6865
Improve visibility of element navigation by moving it above content #6865Arpan200502 wants to merge 1 commit intoopenstreetmap:masterfrom
Conversation
|
Thank you, I think this is showing promise. A few comments:
Then there's this part of the original issue:
But that can be done in a separate PR instead of here. Finally, remember to present a clean commit history. From CONTRIBUTING.md:
|
c1c2143 to
31f2532
Compare
9d86f90 to
a59b3ce
Compare
a59b3ce to
5de5551
Compare
UpdateRebased the branch on the latest While resolving earlier conflicts and CI issues, an incorrect reset accidentally introduced unrelated upstream changes into the branch. The branch has now been reset to the intended commit and force-pushed so the PR only contains the relevant modifications. Changes in this PR
Result
|
5de5551 to
36323a9
Compare
Thanks for the feedback — that helps a lot. I’ve moved the navigation into a sticky wrapper and adjusted the spacing and responsive behavior as suggested. However, I want to make sure I’m addressing the scroll issue correctly. Could you clarify which part is currently affecting the scroll responsiveness? For example, is the sticky navigation overlapping the content, or is it related to the sidebar scroll container itself? If you have a specific scenario (screen size or page interaction) where the problem is visible, that would help me reproduce it locally and adjust the layout properly. |
…nd making it sticky
36323a9 to
674675b
Compare




Description #6759
This change improves the visibility of the element navigation bar in the sidebar.
Previously, the navigation (
Node / History / Versions) appeared after the element content (tags, changeset details, etc.), which meant users often had to scroll to access it when elements had many tags.This PR moves the navigation
<nav>block directly below the sidebar header and applies Bootstrap utility classes to keep it visible while scrolling.Changes made:
sticky-top,bg-body,border-bottom,pb-2,z-1) so the navigation remains visible while scrolling.Files modified:
app/views/elements/show.html.erbapp/views/old_elements/index.html.erbapp/views/old_elements/_actions.html.erbThis improves usability when browsing elements with long tag lists or version histories.
How has this been tested?
Tested locally using the development environment with Docker.
Steps:
Test pages checked:
/node/:id/node/:id/history/node/:id/:version