Summary
On long lectures with a deep section/subsection structure, the right-hand "On this page" TOC does not show all sections at default font size on a laptop screen. Hovering over the RHS TOC and scrolling causes the main content to scroll instead of the TOC, so the hidden sections remain unreachable from the RHS panel. Separately, the left-hand sidebar feels visually crowded against the main text.
Example
https://python.quantecon.org/prob_matrix.html
Reported at default font size on a laptop. The RHS "On this page" panel only shows section links up to roughly 8.7–8.8; sections from 8.9 onwards (including section 8.17 specifically called out) are not visible.
Note: the screenshot from the original report shows the lecture rendered with the LHS series TOC (Tools and Techniques / Elementary Statistics) and the RHS "On this page" panel — the RHS panel cuts off well before reaching all sections of the lecture.
Issues
1. RHS "On this page" TOC overflow
- The RHS TOC does not show all sections when the lecture has many of them.
- Natural user instinct: hover over the RHS panel and scroll. But scrolling there scrolls the main content instead of the RHS panel — so sections below the fold remain unreachable from the RHS.
- The RHS TOC should be independently scrollable when its content overflows the viewport, or it should adapt its layout/density so all sections fit.
2. LHS sidebar crowding
- At this screen size, the LHS sidebar sits hard against the main text with no whitespace between them, making the layout feel cramped.
- Options to explore:
- Add a margin/gutter between the LHS sidebar and the main content
- Change the LHS background from grey to white so the boundary is softer
- Both
3. Possible responsive priority system (proposal)
A possible design direction worth exploring: assign layout priorities to the three columns so the layout adapts to available width.
- Priority 1 (always present): Main content
- Priority 2: LHS series TOC
- Priority 3 (collapses first): RHS "On this page"
Behaviour: when the LHS TOC is open and there isn't enough width, the main content shifts across to fit, and the RHS "On this page" collapses (e.g. into a toggle/icon) rather than truncating. When width is ample, all three columns show.
Open question: can the browser/CSS reliably detect "not enough room" for the RHS panel given variable content widths and TOC depths?
Notes
- The lecture itself (
prob_matrix.html) likely uses subsections more deeply than typical, which exposes the problem — but the theme behaviour is the underlying issue and will affect any long lecture with many sections.
Reproduction
- Open https://python.quantecon.org/prob_matrix.html in a laptop-width browser at default font size
- Look at the RHS "On this page" panel — count visible section links vs total sections in the page
- Hover over the RHS panel and scroll — observe the main content scrolls instead of the panel
Summary
On long lectures with a deep section/subsection structure, the right-hand "On this page" TOC does not show all sections at default font size on a laptop screen. Hovering over the RHS TOC and scrolling causes the main content to scroll instead of the TOC, so the hidden sections remain unreachable from the RHS panel. Separately, the left-hand sidebar feels visually crowded against the main text.
Example
https://python.quantecon.org/prob_matrix.html
Reported at default font size on a laptop. The RHS "On this page" panel only shows section links up to roughly 8.7–8.8; sections from 8.9 onwards (including section 8.17 specifically called out) are not visible.
Issues
1. RHS "On this page" TOC overflow
2. LHS sidebar crowding
3. Possible responsive priority system (proposal)
A possible design direction worth exploring: assign layout priorities to the three columns so the layout adapts to available width.
Behaviour: when the LHS TOC is open and there isn't enough width, the main content shifts across to fit, and the RHS "On this page" collapses (e.g. into a toggle/icon) rather than truncating. When width is ample, all three columns show.
Open question: can the browser/CSS reliably detect "not enough room" for the RHS panel given variable content widths and TOC depths?
Notes
prob_matrix.html) likely uses subsections more deeply than typical, which exposes the problem — but the theme behaviour is the underlying issue and will affect any long lecture with many sections.Reproduction