Skip to content

Conversation

@YUCLing
Copy link
Contributor

@YUCLing YUCLing commented Dec 17, 2024

Fixes #4122

Changes proposed in this pull request:
Switched to sticky positioning and fixed the missing offset by backporting #4111. Bootstrap's affix plugin is kept for compatibility.

Reviewers should focus on:

Screenshot
a27d080cab47a1f7239403c954a823fe

Necessity

  • Has the problem that is being solved here been clearly explained?
  • If applicable, have various options for solving this problem been considered?
  • For core PRs, does this need to be in core, or could it be in an extension?
  • Are we willing to maintain this for years / potentially forever?

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).
  • Core developer confirmed locally this works as intended.
  • Tests have been added, or are not appropriate here.

Required changes:

  • Related documentation PR: (Remove if irrelevant)

@YUCLing YUCLing requested a review from a team as a code owner December 17, 2024 12:11
Copy link
Member

@SychO9 SychO9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @YUCLing thanks for the PR!

Looking at the issue, it seems easier to just add the needed margin when the nav is fixed in place: #4147

@YUCLing
Copy link
Contributor Author

YUCLing commented Jan 4, 2025

Looking at the issue, it seems easier to just add the needed margin when the nav is fixed in place: #4147

Well, this also switches to a more modern way to make the nav fixed. Still, it's up to you to decide which way to take.

@SychO9
Copy link
Member

SychO9 commented Jan 4, 2025

I'd definitely like to see us replacing jquery/bootstrap, but since that won't happen in the 2.x line anyway, my preference is simpler changes especially as we're looking to stabilize 2.0 right now.

Still, this will be a great reference for v3 when we get to dropping jquery and bootstrap!

Closing for now. Thanks again!

@SychO9 SychO9 closed this Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.x] Side nav positioning offset missing

2 participants