The positioning of the message hover action buttons is abnormal, causing layout distortion of the message box #13798

Closed
opened 2026-02-21 19:13:55 -05:00 by yindo · 1 comment
Owner

Originally created by @441126098 on GitHub (May 12, 2025).

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).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.3.1

Cloud or Self Hosted

Cloud, Self Hosted (Source)

Steps to reproduce

  1. Enter a message that is longer than one line.
  2. Move the mouse over the user's message.

✔️ Expected Behavior

The pop-up buttons appear at the bottom of the message box, just like the replied messages.

Actual Behavior

The pop-up buttons are inline with the message box, causing a layout change.

Image

Originally created by @441126098 on GitHub (May 12, 2025). ### 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] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.3.1 ### Cloud or Self Hosted Cloud, Self Hosted (Source) ### Steps to reproduce 1. Enter a message that is longer than one line. 2. Move the mouse over the user's message. ### ✔️ Expected Behavior The pop-up buttons appear at the bottom of the message box, just like the replied messages. ### ❌ Actual Behavior The pop-up buttons are inline with the message box, causing a layout change. ![Image](https://github.com/user-attachments/assets/b802855f-7cf1-46c7-898f-f76091ebe706)
yindo added the 🐞 bug label 2026-02-21 19:13:55 -05:00
yindo closed this issue 2026-02-21 19:13:55 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (May 12, 2025):

The issue you're experiencing with the positioning of the message hover action buttons in Dify might be related to the CSS classes or styles applied to these buttons. The relevant CSS classes are .action-btn and .action-btn-hover. These classes control the display, alignment, and hover effects of the buttons. You can customize their appearance using CSS variables such as --dify-chatbot-bubble-button-bg-color, --dify-chatbot-bubble-button-width, and others [1].

To address the layout distortion, you might want to check if there are any custom styles or overrides affecting these classes. Additionally, ensure that the CSS variables are set correctly to maintain the expected positioning of the buttons at the bottom of the message box. If the issue persists, reviewing recent changes in the codebase or any custom styles applied to the message box might help identify the cause.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (May 12, 2025): <!-- Answer --> The issue you're experiencing with the positioning of the message hover action buttons in Dify might be related to the CSS classes or styles applied to these buttons. The relevant CSS classes are `.action-btn` and `.action-btn-hover`. These classes control the display, alignment, and hover effects of the buttons. You can customize their appearance using CSS variables such as `--dify-chatbot-bubble-button-bg-color`, `--dify-chatbot-bubble-button-width`, and others <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/base/action-button/index.css)</sup>. To address the layout distortion, you might want to check if there are any custom styles or overrides affecting these classes. Additionally, ensure that the CSS variables are set correctly to maintain the expected positioning of the buttons at the bottom of the message box. If the issue persists, reviewing recent changes in the codebase or any custom styles applied to the message box might help identify the cause. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/f8a48a09-d454-4fc4-8107-321fc93abfee?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/f8a48a09-d454-4fc4-8107-321fc93abfee?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/f8a48a09-d454-4fc4-8107-321fc93abfee?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/f8a48a09-d454-4fc4-8107-321fc93abfee?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f8a48a09-d454-4fc4-8107-321fc93abfee?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/f8a48a09-d454-4fc4-8107-321fc93abfee?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f8a48a09-d454-4fc4-8107-321fc93abfee?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13798