From 7db56ee3eb4f1f8ab77dcfb9d7d956a96b12aacf Mon Sep 17 00:00:00 2001 From: karti-ai <176560021+karti-ai@users.noreply.github.com> Date: Fri, 28 Aug 2026 16:46:38 -0700 Subject: [PATCH] Size the play column so the board and keyboard read as one object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The interactive board collapsed to a stub: an empty board has no intrinsic width, so `w-full` inside a shrink-to-fit card resolved to nothing — and empty is exactly the state it starts in, so it was only ever seen broken. It now carries an explicit width. The keyboard stretched to the full page because its parent was unconstrained, putting the keys a screen away from the board they belong to. The play column is capped at 28rem, and the agent's replay moved below its own heading instead of sitting beside a lone paragraph. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_019mt6sHQHEnEYrJZvoMCJSB --- src/components/demo/DemoShell.tsx | 12 ++++++------ src/components/demo/PlayYourself.tsx | 5 ++++- src/demos/wordle/surface.tsx | 9 ++++++++- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/components/demo/DemoShell.tsx b/src/components/demo/DemoShell.tsx index e160da1..befd147 100644 --- a/src/components/demo/DemoShell.tsx +++ b/src/components/demo/DemoShell.tsx @@ -353,16 +353,16 @@ function DemoBody({ bundle }: { bundle: DemoBundle }) { return (
{demo.interactive ? ( -
+ <> -
+

What the model did

-

- Same hidden answer, same rules, same budget. Its attempt is - below, replayed at the speed it actually happened. +

+ Same hidden answer, same rules, same budget — replayed at the + speed it actually happened.

-
+ ) : null} {runs.length > 1 ? ( diff --git a/src/components/demo/PlayYourself.tsx b/src/components/demo/PlayYourself.tsx index 4c2cc1d..213695c 100644 --- a/src/components/demo/PlayYourself.tsx +++ b/src/components/demo/PlayYourself.tsx @@ -44,7 +44,10 @@ export function PlayYourself({ const Controls = interactive.Controls; return ( -
+ // Capped, not full-bleed. The keyboard is a grid of flex rows, so an + // unconstrained parent stretches it to the page width and the keys drift + // far from the board they belong to. +

Your attempt