Skip to content

fix(site): stop the Get started code pane widening the page on phones - #35

Merged
juliojimenez merged 1 commit into
mainfrom
julio/fix-700-px
Nov 5, 2026
Merged

juliojimenez merged 1 commit into
mainfrom
julio/fix-700-px

Conversation

@juliojimenez

Copy link
Copy Markdown
Member

What / why

Below ~700px the landing page scrolled horizontally. The outermost offender was the Get started code pane: it is a flex item of the click-ui Panel (column, align-items: center), and a flex item's default min-width: auto lets the white-space: pre code force it to its content width (686px), which widened the whole document regardless of viewport.

.get-started-panel .codewrap now has width: 100%; min-width: 0 alongside the existing 860px cap, so the pane shrinks with the panel and the CodeBlock's own overflow-x: auto scrolls the long curl lines internally. Desktop is unchanged (862px pane, centered).

Measured in headless Chrome on the production build: document width equals the viewport at 375, 414 and 700px (was 743px at all three). At 320px the page is still 360px wide because of the header's "Get started" button; that is a separate header-layout issue and is not touched here.

Checklist

  • make test and make smoke pass
  • README.md and site/ updated if behavior or docs changed (samples in site/src/samples.ts stay verbatim)
  • Tests added/updated for compiler, rules, or UDF changes (n/a: one CSS rule)
  • Code stays portable to ECL 21.2.1 (no Lisp changes)

🤖 Generated with Claude Code

Signed-off-by: Julio Jimenez <julio@julioj.com>
@juliojimenez juliojimenez self-assigned this Nov 5, 2026
@juliojimenez juliojimenez added the fix Fixes a bug label Nov 5, 2026
@juliojimenez
juliojimenez merged commit 4c609c5 into main Nov 5, 2026
6 checks passed
@juliojimenez
juliojimenez deleted the julio/fix-700-px branch November 5, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant