Repository navigation
Match the API landing search box and its results in width - #4849
Merged
Merged
Conversation
The results opened 640px wide under a narrower box and overhung its right edge. The box now sits at 640px, its results take the box's width, and the lede above it widens to the same 640px at a larger size so the hero reads as one block. The sidebar box keeps its 640px results panel. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4849/ |
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 search box on the all-APIs landing page and its results dropdown are now the same width, 640px on desktop. The lede above them widens to match, so the hero reads as one block.
Affects: Site UI, API reference
Prompt summary: The author asks for the landing page search input and its results dropdown to be the same width. After seeing it running, they choose a wider box over narrower results, then a hero layout modeled on Sketch's documentation page: a two-line lede that spans the box, without suggestion chips.
Why
The finder in the hero is capped at
36rem, which is 504px with the site's 14px root size. Its results panel has a 640px minimum, so the dropdown opens 136px wider than the box and overhangs its right edge. A narrower panel cuts long routes such as/_search/scroll/{scroll_id}short.What
Results take the box's width
The large hero box no longer sets the 640px panel minimum, so EUI sizes the results to the input at every width. The sidebar box is narrow and keeps its 640px results panel.
A 640px finder
The finder grows to 640px, the width the sidebar's results already get, so a route line reads in full. On a phone it still fills the column.
The lede spans the finder
The lede shares the finder's 640px width at
--text-lg(18px) and wraps withtext-wrap: prettyinstead ofbalance. Its first line runs close to the finder's edges and the second line breaks after "self-managed,". The navigation-preview hero uses a different class and is unchanged.Verify
Build with the API explorer on, serve it, open
/docs/api/and typescrollin the box:At 1440px, 768px and 390px wide, the box and the results panel share the same left edge and width, and the page has no horizontal scroll.
Check on the preview
🤖 Generated with Claude Code