Skip to content

fix(web): a long command stays inside its approval card when opened - #293

Merged
The1UNeed merged 1 commit into
mainfrom
t3/fix-chat-layout-overflow
Nov 22, 2026
Merged

The1UNeed merged 1 commit into
mainfrom
t3/fix-chat-layout-overflow

Conversation

@The1UNeed

@The1UNeed The1UNeed commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Opening an answered approval card in a bot's chat could spill past the card's right edge. A command with a long path, such as a uv run heredoc reading a file under ~/.hexbot/runtime/sessions/…, ran off the side instead of scrolling, and the reason under it wrapped wider than the card.

The card's details unfold inside .hex-unfold, a grid used for the height animation. Its implicit auto column grew to the longest unbreakable line, so the <pre>'s overflow-auto never applied. The column is now minmax(0, 1fr), so it fits its container: the command scrolls inside its box and the reason wraps at the card's width. The same rule also keeps a long line in a step's details in work status from widening it.

Checked with a reproduction of the card's layout before and after, and Prettier on tokens.css.

Council review

Rounds: 1

Delegate Round 1
GPT Sol 9.5/10
GPT Astra 9.5/10
Claude Opus 9.5/10
Gemini 4 Neon 9.7/10

Created with Claude Opus 5.5 in Antigravity.


Note

Low Risk
Single CSS layout tweak for unfold/fold grids with no logic or API changes.

Overview
Fixes approval cards and other .hex-unfold / .hex-fold sections overflowing when expanded content includes long unbreakable lines (e.g. commands in <pre>).

Those grids used the default implicit auto column, which sized to the longest line and bypassed horizontal scrolling on the card. They now use grid-template-columns: minmax(0, 1fr) so the column respects the parent width: command blocks scroll inside the card and surrounding text wraps at the card edge. A short comment in tokens.css documents the behavior.

Reviewed by Cursor Bugbot for commit ef35978. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hexbot-connect Ready Ready Preview Nov 22, 2026 11:13am UTC
hexbot-site Ready Ready Preview Nov 22, 2026 11:13am UTC

Request Review

@cursor

cursor Bot commented Nov 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 951843ac-23d3-4d04-bd3c-578fae3a7506)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T11:14:15.464936Z ef35978 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@The1UNeed
The1UNeed merged commit adca86d into main Nov 22, 2026
16 checks passed

This branch was successfully deployed

2 active deployments
Preview – hexbot-site — ef35978c Deployed Nov 22, 2026 by vercel[bot]
Preview – hexbot-connect — ef35978c Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant