Skip to content

Let the prompt block wrap instead of overflowing the card - #5805

Merged
dimitrieh merged 1 commit into
mainfrom
ai/prompt-block-wrap
Sep 18, 2026
Merged

dimitrieh merged 1 commit into
mainfrom
ai/prompt-block-wrap

Conversation

@dimitrieh

Copy link
Copy Markdown
Contributor

Description

The Claude Code and Codex tabs from #5800 put a sentence into a block built for an address, and it overflows the card. Reported from the live page.

The stacked command block sets white-space: nowrap on purpose: a wrapped address is harder to read than one you scroll. But nowrap sizes the block to its content. Measured on the preview at 1440px:

Tab Block width Position
Claude (an address) 291px 698px inside the card
Claude Code (a sentence) 1079px 90px past the card's right edge

So the end of the prompt, the half that says what it does, was cut off.

Adds an explicit wrap prop rather than inferring it from the content's length, and passes it only from the two tabs that carry a prompt. word-break goes back to normal so words stay whole, overriding the base rule's break-all; overflow-wrap: anywhere still lets the address break if it has to.

The same defect exists in the platform's own copy of this block and is fixed in FlowFuse/flowfuse#8499.

Related Issue(s)

https://github.com/FlowFuse/engineering/issues/272

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

The coding-agent tabs put a sentence into a block built for an address. The
stacked block sets white-space: nowrap on purpose, because a wrapped address is
harder to read than one you scroll, but nowrap sizes the block to its content:
measured on the preview it came out 1079px wide and pushed 90px past the right
edge of the card, with the end of the prompt cut off. The Claude tab's block, the
same component with an address in it, is 291px and sits well inside.

Adds an explicit wrap prop rather than guessing from the content's length, the
same reason the block does not guess whether a cap is per line or per block.
Only the two tabs carrying a prompt pass it.

word-break goes back to normal so words stay whole, overriding the base rule's
break-all; overflow-wrap lets the address break if it has to.
@netlify

netlify Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for flowfuse-website ready!

Name Link
🔨 Latest commit bf48547
🔍 Latest deploy log https://app.netlify.com/projects/flowfuse-website/deploys/6aa914db779e0a0008a510b2
😎 Deploy Preview https://deploy-preview-5805--flowfuse-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 48 (🟢 up 17 from production)
Accessibility: 95 (no change from production)
Best Practices: 92 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@dimitrieh

Copy link
Copy Markdown
Contributor Author

Fixes this problem:
CleanShot 2026-09-15 at 12 14 06 PM@2x

@dimitrieh
dimitrieh merged commit 7fe4d2b into main Sep 18, 2026
7 checks passed
@dimitrieh
dimitrieh deleted the ai/prompt-block-wrap branch September 18, 2026 12:22
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