Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: simplify PromptNode canvas display style#120

Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/prompt-node-display-stylebreaking-brake/cc-wf-studio:fix/prompt-node-display-styleCopy head branch name to clipboard
Nov 20, 2025
Merged

fix: simplify PromptNode canvas display style#120
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/prompt-node-display-stylebreaking-brake/cc-wf-studio:fix/prompt-node-display-styleCopy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

Problem

PromptNode's canvas display used a boxed style that was inconsistent with other nodes (e.g., SubAgentNode).

Current Behavior

  • ❌ Prompt preview displayed in a box with background color and border
  • ❌ Using monospace font
  • ❌ Fixed height constraint (60px)

Expected Behavior

  • ✅ Simple plain text display without box
  • ✅ Using regular font
  • ✅ Display up to 2 lines (same as SubAgentNode)

Solution

Unified PromptNode's prompt preview style to match SubAgentNode's simple plain text style.

Changes

File: src/webview/src/components/nodes/PromptNode.tsx

  • Removed background color, border, border-radius, and padding
  • Changed from monospace to regular font
  • Replaced fixed height constraint with 2-line clamp (WebkitLineClamp: 2)
  • Added ellipsis for text overflow
// Before
backgroundColor: 'var(--vscode-textBlockQuote-background)',
border: '1px solid var(--vscode-textBlockQuote-border)',
borderRadius: '4px',
padding: '8px',
fontFamily: 'monospace',
maxHeight: '60px',

// After
lineHeight: '1.4',
overflow: 'hidden',
textOverflow: 'ellipsis',
display: '-webkit-box',
WebkitLineClamp: 2,
WebkitBoxOrient: 'vertical',

Impact

  • Improved visual consistency across node types
  • Unified design with SubAgentNode, SkillNode, etc.
  • No breaking changes (existing workflow files unaffected)

Testing

  • Manual E2E testing completed
    • Verified PromptNode canvas display
    • Confirmed prompt text displays correctly in 2 lines
    • Confirmed long text is truncated with ellipsis
  • Code quality checks passed
    • npm run format
    • npm run lint
    • npm run check
    • npm run build

🤖 Generated with Claude Code

Remove boxed styling from prompt preview to match SubAgentNode's plain text style.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@breaking-brake breaking-brake merged commit fc9b391 into main Nov 20, 2025
3 checks passed
@breaking-brake breaking-brake mentioned this pull request Nov 20, 2025
github-actions Bot added a commit that referenced this pull request Nov 20, 2025
## [2.9.0](v2.8.0...v2.9.0) (2025-11-20)

### Features

* add prompt preview to SubAgentNode canvas display ([#118](#118)) ([25f5ad6](25f5ad6))

### Bug Fixes

* simplify PromptNode canvas display style ([#120](#120)) ([fc9b391](fc9b391))
* unify prompt terminology and rename translation keys ([#119](#119)) ([29d8111](29d8111))
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

breaking-brake added a commit that referenced this pull request Nov 20, 2025
Remove boxed styling from prompt preview to match SubAgentNode's plain text style.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
@breaking-brake breaking-brake mentioned this pull request Nov 20, 2025
github-actions Bot added a commit that referenced this pull request Nov 20, 2025
## [2.9.0](v2.8.0...v2.9.0) (2025-11-20)

### Features

* add prompt preview to SubAgentNode canvas display ([#118](#118)) ([25f5ad6](25f5ad6))

### Bug Fixes

* simplify PromptNode canvas display style ([#120](#120)) ([73d6a55](73d6a55))
* unify prompt terminology and rename translation keys ([#119](#119)) ([c616374](c616374))
breaking-brake added a commit that referenced this pull request Nov 23, 2025
Remove boxed styling from prompt preview to match SubAgentNode's plain text style.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
breaking-brake pushed a commit that referenced this pull request Nov 23, 2025
## [2.9.0](v2.8.0...v2.9.0) (2025-11-20)

### Features

* add prompt preview to SubAgentNode canvas display ([#118](#118)) ([25f5ad6](25f5ad6))

### Bug Fixes

* simplify PromptNode canvas display style ([#120](#120)) ([73d6a55](73d6a55))
* unify prompt terminology and rename translation keys ([#119](#119)) ([c616374](c616374))
@breaking-brake breaking-brake deleted the fix/prompt-node-display-style branch December 3, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.