Skip to content

Cap canvas text node height with wrapped preview #895

@matKlju

Description

@matKlju

AS A Service creator

I WANT text-based nodes on the canvas to have a fixed height with wrapped, truncated previews

SO THAT long text or many newlines do not break canvas layout or readability

Description

“Message to client” and MCQ nodes currently grow vertically when containing long text or many newline characters. This breaks canvas layout. All inbound-text nodes should keep a fixed height and display a wrapped preview with ellipsis () to indicate truncated content. Full text must remain accessible in the edit modal.

Image

Acceptance Criteria

  • Node height is fixed and does not change based on text length or newlines
  • Text preview wraps within node width
  • Overflow text is clamped and ends with ellipsis ()
  • Works for:
    • Long single-line text
    • Multiple newline characters
    • Mixed long words + newlines
  • Applies to all inbound-text nodes (Message to client, MCQ question text, others)

Notes

  • Canvas stability and readability are the priority
  • Visual behavior should be consistent across all text-based nodes

Metadata

Metadata

Assignees

Labels

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions