Skip to content

[DS 2.0] Keep node title and subtitle on one line with ellipsis and tooltip - #126

Draft
librowski wants to merge 1 commit into
ds2-persist-without-measuredfrom
ds2-node-text-ellipsis
Draft

[DS 2.0] Keep node title and subtitle on one line with ellipsis and tooltip#126
librowski wants to merge 1 commit into
ds2-persist-without-measuredfrom
ds2-node-text-ellipsis

Conversation

@librowski

Copy link
Copy Markdown
Collaborator

Problem

Design rule for DS 2.0 canvas nodes (confirmed by design on the node geometry questions): fixed 241px width, no resize, height grows; title, subtitle and body rows are one line with an ellipsis and the full text in a tooltip; rich body wraps. In code only the title truncated. A long subtitle wrapped, and in the Decision template (min-width: max-content on the body) it widened the whole node - observed at 284px in the AI Studio "Customer Support Triage" flow.

Change

  • node-description.module.css: the subtitle gets the same one-line ellipsis treatment as the title; the block gets min-width: 0 and contain: inline-size, so its text no longer contributes intrinsic width to a max-content body. Nodes keep the design width and grow in height only.
  • NodeDescription sets the native title attribute on both lines so the full text stays reachable (the design system tooltip component can replace it later without changing the contract).
  • Spec covers the tooltip attributes; docs page gains a "Truncation" section; changeset @workflowbuilder/ui patch.

Verification

ui tests (69), typecheck, build, check:built-css, stylelint, eslint. Follow-up visual check on the Decision node width belongs to the stack's end-to-end pass.

@librowski
librowski force-pushed the ds2-node-text-ellipsis branch from 365d0f0 to dcd25e9 Compare September 9, 2026 15:45
…ooltip

Design rule for DS 2.0 nodes: fixed width, height grows, title and subtitle
truncate to one line with the full text in a tooltip. The description block
also stops contributing intrinsic width (contain: inline-size), so a long
subtitle no longer widens bodies sized with min-width: max-content.
@librowski
librowski force-pushed the ds2-node-text-ellipsis branch from dcd25e9 to 6c07c11 Compare September 9, 2026 16:49
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