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 sidebar scroll and footer display #1152

Merged
merged 2 commits into from
Aug 12, 2024
Merged

Fix sidebar scroll and footer display #1152

merged 2 commits into from
Aug 12, 2024

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Aug 9, 2024

  1. The sidebar scroll is broken because Fix darkfish responsiveness issue on screens between 1024px and ~1650px  #1148 made nav's height not properly constrained. Adding bottom: 0 fixes it.
  2. With 1), however, the footer display would break again. And there is no good solution to fix it as placing it directly inside body but displaying it only in nav, while wanting to make it adjustable for scrolling, has been proven problematic. So I decided to move the footer element inside nav and do the corresponding css adjustments for it.

The demo below shows that the sidebar's content is now scrollable again, with the footer stick to the bottom while sidebar is being scrolled.

Screen.Recording.2024-08-09.at.23.02.37.mov

st0012 added 2 commits August 9, 2024 23:21
- Ensured the footer is part of the `nav` and sticks to the bottom by default,
appearing at the bottom of the scroll when content overflows.
- Applied flexbox layout to `nav` and `main` to manage space distribution.
@st0012 st0012 added the bug label Aug 9, 2024
@st0012 st0012 merged commit 6abf596 into master Aug 12, 2024
51 checks passed
@st0012 st0012 deleted the fix-sidebar-scroll branch August 12, 2024 14:21
@st0012 st0012 mentioned this pull request Aug 13, 2024
st0012 added a commit that referenced this pull request Aug 15, 2024
In #1152 the footer partial was only added to the index.rhtml file.
This commit adds the footer partial to the other template files.
st0012 added a commit that referenced this pull request Aug 15, 2024
* Add missing footers

In #1152 the footer partial was only added to the index.rhtml file.
This commit adds the footer partial to the other template files.

* Remove unnecessary middle divs in nav

* Simplify sidebar's overflow settings

Because sidebar needs to be scrollable, its overflow should default to auto.
Currently it's set to hidden and force individual elements to set overflow auto,
which overcomplicates things.
@st0012 st0012 added this to the v6.8.0 milestone Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants