Repository navigation
Keep the API feedback prompt below a tall examples rail on wide screens - #4525
Merged
Merged
Conversation
The rail spanned both grid rows on wide screens, so a tall examples rail ran past the "Was this helpful" prompt. 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/4525/ |
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.
On API operation pages at 1024px and wider, the "Was this helpful" prompt now spans the full width below the article and the examples rail, so it ends the page even when the rail is taller than the article.
Affects: API reference, Site UI
Prompt summary: Make the "Was this helpful" prompt the last thing on API pages, with the examples above it. #4492 fixed this below 1024px; this PR hardens the wide layout.
Why
From 1024px up, the right rail spans both grid rows and the feedback prompt sits in the article column. A rail taller than the article, such as one with many examples next to a short operation, then runs past the prompt. The sticky examples panel is capped at the viewport height, so long operations like
operation-bulkare not affected today.What
Wide-screen page grid
The rail now occupies the first grid row only, and the rows size to their content.
page-feedbackspans both columns in the second row, so it follows whichever of the article or the rail is taller. The sticky examples panel sticks only for the height of the article row, so it cannot slide past the prompt.Out of scope: the layout below 1024px, which #4492 already handles.
Check on the preview
🤖 Generated with Claude Code