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

[2.x] Side nav positioning offset missing #4122

Open
YUCLing opened this issue Nov 20, 2024 · 0 comments · May be fixed by #4142
Open

[2.x] Side nav positioning offset missing #4122

YUCLing opened this issue Nov 20, 2024 · 0 comments · May be fixed by #4142
Labels

Comments

@YUCLing
Copy link
Contributor

YUCLing commented Nov 20, 2024

Current Behavior

With AffixedSidebar, the side nav uses position: fixed for side nav's ul to make it fixed on viewport. However, in #3876, the margin-top of ul is moved to the AffixedSidebar's parent element Page-sidebar.

From the top value used below, we can see it only includes the height of header, so the side nav is at a taller position than 1.x.

top: var(--header-height);

Steps to Reproduce

  1. Find a page with a side nav using AffixedSidebar
  2. Scroll down

Expected Behavior

The missing offset provided by margin-top should be still there.

Screenshots

image

Environment

  • Flarum version: 2.0-dev

Output of php flarum info

No response

Possible Solution

Backport 11fc74d and ea21ef4, which uses position: sticky and adds the missing offset.

Additional Context

No response

@YUCLing YUCLing linked a pull request Dec 17, 2024 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant