node title is overflow in checklist #4400

Closed
opened 2026-02-21 18:06:15 -05:00 by yindo · 1 comment
Owner

Originally created by @aixgeek on GitHub (Jul 2, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.11

Cloud or Self Hosted

Cloud, Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

node title is overflow in checklist

✔️ Expected Behavior

node title is truncate in checklist

Actual Behavior

node title is overflow in checklist
image
image

Originally created by @aixgeek on GitHub (Jul 2, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.11 ### Cloud or Self Hosted Cloud, Self Hosted (Docker), Self Hosted (Source) ### Steps to reproduce node title is overflow in checklist ### ✔️ Expected Behavior node title is truncate in checklist ### ❌ Actual Behavior node title is overflow in checklist ![image](https://github.com/langgenius/dify/assets/9697715/b4562d5c-28c4-48f2-9eec-d52def4a9f49) ![image](https://github.com/langgenius/dify/assets/9697715/fcfdc2eb-756b-48cf-b8d4-468d2f689769)
yindo added the 🐞 bug label 2026-02-21 18:06:15 -05:00
yindo closed this issue 2026-02-21 18:06:15 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 2, 2024):

To fix the issue of the node title overflowing in the checklist in version 0.6.11, you can add CSS styles to ensure the text is truncated and does not overflow its container. You can achieve this by adding the text-overflow, white-space, and overflow properties to the node title's container.

Here's the updated code snippet with the necessary styles:

<div className='flex items-center p-2 h-9 text-xs font-medium text-gray-700'>
  <BlockIcon
    type={node.type}
    className='mr-1.5'
    toolIcon={node.toolIcon}
  />
  <div className='truncate'>
    {node.title}
  </div>
</div>

The truncate class should be defined in your CSS to include the following properties:

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

This will ensure that the node title is truncated with an ellipsis if it overflows its container [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Jul 2, 2024): <!-- Answer --> To fix the issue of the node title overflowing in the checklist in version 0.6.11, you can add CSS styles to ensure the text is truncated and does not overflow its container. You can achieve this by adding the `text-overflow`, `white-space`, and `overflow` properties to the node title's container. Here's the updated code snippet with the necessary styles: ```tsx <div className='flex items-center p-2 h-9 text-xs font-medium text-gray-700'> <BlockIcon type={node.type} className='mr-1.5' toolIcon={node.toolIcon} /> <div className='truncate'> {node.title} </div> </div> ``` The `truncate` class should be defined in your CSS to include the following properties: ```css .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ``` This will ensure that the node title is truncated with an ellipsis if it overflows its container <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/workflow/header/checklist.tsx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4400