Skip to content

Match the API landing search box and its results in width - #4849

Merged
reakaleek merged 1 commit into
mainfrom
match-docs-api-input-widt-361fe763
Nov 13, 2026
Merged

reakaleek merged 1 commit into
mainfrom
match-docs-api-input-widt-361fe763

Conversation

@reakaleek

@reakaleek reakaleek commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

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 with text-wrap: pretty instead of balance. 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

mise run site:test

Build with the API explorer on, serve it, open /docs/api/ and type scroll in the box:

FEATURE_ASSEMBLER_API_EXPLORER=true dotnet run --project src/tooling/docs-builder -- assembler build --environment dev --skip-private-repositories --no-assume-build
ENVIRONMENT=dev DOCS_BUILD_TYPE=assembler .artifacts/bin/docs-builder/debug/docs-builder assembler serve --port 4020

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

  • All APIs - the lede at 18px, 640px wide, its first line close to full width. The preview is an isolated build, which renders no finder, so the box and its results need the local assembler run under Verify.

🤖 Generated with Claude Code

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]>
@reakaleek
reakaleek requested a review from a team as a code owner November 13, 2026 10:03
@reakaleek
reakaleek requested a review from technige November 13, 2026 10:03
@reakaleek

Copy link
Copy Markdown
Member Author

LGTM

image

@github-actions

Copy link
Copy Markdown
Contributor

@reakaleek
reakaleek merged commit e83fffb into main Nov 13, 2026
49 checks passed
@reakaleek
reakaleek deleted the match-docs-api-input-widt-361fe763 branch November 13, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant