Repository navigation
Give the topic-contents sample's tabs the window's width, so Full view draws the margin map - #4808
Merged
Merged
Conversation
…w draws the margin map The gallery's "An index for each topic" sample says that in Full view on a wide screen each topic's contents sits in the left margin as a reading map. Since #4724 made sidebars native CSS, the sample's tabs stood inside its page's `layout-column`, so each tab's `layout-sidebar` had about 720px of a 1379px Full view and stacked its aside above the body: the index stayed open in the flow and no map drew. `data-width="available"` on the tabs gives them the window, so the aside stands beside the body and the map draws, in Chromium and Firefox. Embedded in the gallery's column and in a 1000px Full view the index still starts open below the tabs, as the sample's prose says.
leaf-agent
approved these changes
Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The feature gallery's "An index for each topic" sample tells the reader that in Full view on a wide screen each topic's contents sits in the left margin as a reading map. Since #4724 moved sidebars to native CSS it hasn't: the sample's tabs stand inside its page's
layout-column, so each tab'slayout-sidebargets about 720px of a 1379px Full view and stacks its aside above the body, leaving the index open in the flow.data-width="available"on the sample'slf-tabsgives the tabs the window, aspage-layout.mdsays a block asks for more than the column. Probed at 1440×900 in Chromium and Firefox, Full view now stands the aside (240px) beside a 1017px body and draws the map; embedded in the gallery's column, and in a 1000px Full view, the index still starts open below the tabs, as the sample's prose says. The embedded sample's geometry is identical to main's.This came up while repairing the stills catalogue (#4807), where no example drew the margin map any more.