Repository navigation
API rail: share the window height between request and response code - #4696
Merged
Merged
Conversation
Only the examples panel shrinks now, and the response fills the height left in the rail instead of a fixed guess. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Replace the shrinking examples chain with a single scrolling rail, and open the Copy page menu inward so the rail does not clip it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4696/ |
The rail no longer scrolls. The shorter sample shows in full and the longer one gets the rest, with at least five lines each. The examples column is 40px wider and the reference 40px narrower. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rail had a fixed window height, so on short pages the first grid row grew to the window and pushed the page feedback down. The balance script now reads the rail's max-height instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…io changes A capped sample keeps its size when another one becomes active, so the resize observers never saw the change and a longer sample stayed clipped to the previous one's height. Co-Authored-By: Claude Opus 5.5 <[email protected]>
scrollHeight leaves out a horizontal scrollbar while max-height counts it, so with classic scrollbars a short sample with a wide line lost its last line to a vertical scrollbar. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…by @infra-vault-gh-plugin-prod) Every HTMX navigation added a window listener that kept the previous page's panel alive. One listener now balances the connected panels and stops the observers of the detached ones. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e (per review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Why
100dvh - 26remguess. It ignored the Base URL block, long captions and extra rows of example chips.What
Notes
api-examples-balance.tsmeasures that space and sets two heights. It re-balances on window resize and when the language, chip, response tab or "Show more" changes. It also counts a horizontal scrollbar in each sample's height. Without the script, the old 16-line and 12-line caps apply.npm run visual:checkdid not complete: the baseline seed timed out on an unrelated page.🤖 Generated with Claude Code