Skip to content

Fix very long text not forcibly wrapping at its max width - #4019

Merged
TrueDoctor merged 2 commits into
GraphiteEditor:masterfrom
Annonnymmousss:fix/text_box_constraint_breakage
Nov 6, 2026
Merged

TrueDoctor merged 2 commits into
GraphiteEditor:masterfrom
Annonnymmousss:fix/text_box_constraint_breakage

Conversation

@Annonnymmousss

Copy link
Copy Markdown
Contributor

closes #4009

Screen.Recording.2026-04-09.at.4.05.43.AM.mov

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Confidence score: 5/5

  • This looks low risk to merge because the only flagged item is PR metadata (title style), not a behavioral change in the code.
  • The reported issue is a process/compliance concern (remove fix: and use sentence case), so user-facing runtime regression risk appears minimal.
  • Pay close attention to node-graph/nodes/text/src/text_context.rs - verify no functional text-wrapping behavior changed beyond what the title-format check implies.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="node-graph/nodes/text/src/text_context.rs">

<violation number="1" location="node-graph/nodes/text/src/text_context.rs:80">
P1: Custom agent: **PR title enforcement**

PR title uses a conventional commit prefix and starts with a lowercase word. Rename it to sentence case without the `fix:` prefix (e.g., "Fix very long text not forcibly wrapping at its max width").</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@Annonnymmousss Annonnymmousss changed the title fix: Very long text does not forcibly wrap at its max width Very long text does not forcibly wrap at its max width Apr 8, 2026
@Annonnymmousss Annonnymmousss changed the title Very long text does not forcibly wrap at its max width Fix Very long text does not forcibly wrap at its max width Apr 8, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the text layout logic in text_context.rs by importing OverflowWrap and setting OverflowWrap::BreakWord as a default style property. This change ensures that text will wrap by breaking words when necessary. I have no feedback to provide.

@Keavon

Keavon commented Apr 8, 2026 •

Copy link
Copy Markdown
Member

!build (Run ID 24163097135)

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown
📦 Web Build Complete for 35b9098
https://1c4acce6.graphite.pages.dev

@Keavon
Keavon force-pushed the master branch 2 times, most recently from f07c79b to 76938eb Compare April 29, 2026 12:16
@Keavon
Keavon force-pushed the master branch 2 times, most recently from 4b7a823 to 847b8e9 Compare May 17, 2026 14:37
@timon-schelling
timon-schelling force-pushed the master branch 2 times, most recently from 15fcaac to d5f0140 Compare May 17, 2026 15:37
@TrueDoctor
TrueDoctor force-pushed the fix/text_box_constraint_breakage branch from 35b9098 to 38ea218 Compare November 6, 2026 22:32
@TrueDoctor
TrueDoctor enabled auto-merge November 6, 2026 22:38
@TrueDoctor
TrueDoctor added this pull request to the merge queue Nov 6, 2026
Merged via the queue into GraphiteEditor:master with commit 63f7805 Nov 6, 2026
14 checks passed
Keavon pushed a commit that referenced this pull request Nov 6, 2026
* fix: Very long text does not forcibly wrap at its max width

* Test that a word longer than the max width breaks to stay within it

---------

Co-authored-by: Dennis Kobert <dennis@kobert.dev>
@Keavon Keavon changed the title Fix Very long text does not forcibly wrap at its max width Fix very long text not forcibly wrapping at its max width Nov 6, 2026
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.

Very long text does not forcibly wrap at its max width

3 participants