rust-lang / rust-lang/mdBook

Sidebar not visible in large screens

Open
#2,274 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
Dominant language
Rust
Stars
22.2k
Forks
1.9k
PR merge metrics
PR metrics pending

Description

Problem

I'm facing an issue where the sidebar doesn't automatically appear at startup, even when the window size is sufficient,
document.body.clientWidth = 3050 which is bigger than 1080

Is there a way to configure the mdbook to force the sidebar to be visible regardless of the window size?
In my case, mdbook is embedded inside a specific frameset Frame 3 on the page. Please see the image below.

image

Even if I increase the window size, the sidebar remains hidden, and it would be nice to have a parameter for that case addressing this scenario.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by reproducing the sidebar behavior in an mdBook embedded in the described “Frame 3” frameset, comparing document.body.clientWidth with the 1080px threshold. Done means the issue’s large-screen embedded scenario has a documented, reproducible way to keep the sidebar visible.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.