Skip to content

Fix sidebar when figure within admointion#10

Draft
Tom-van-Woudenberg wants to merge 2 commits into
mainfrom
fix-secondary-sidebar
Draft

Fix sidebar when figure within admointion#10
Tom-van-Woudenberg wants to merge 2 commits into
mainfrom
fix-secondary-sidebar

Conversation

@Tom-van-Woudenberg

Copy link
Copy Markdown
Member

Some pages render another secondary sidebar without the expected id. The previous id-only lookup could miss it, trigger fallback insertion in the content column, and cause the “extra inner margin” effect.

Now the script:

  1. Detects an existing secondary sidebar by either id or class.
  2. Uses that real sidebar for sticky items instead of creating a fallback in the content column.
  3. Only creates a fallback when no secondary sidebar exists at all, and gives it the expected id for compatibility.

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.

1 participant