UI layout bug in mobile #12139

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

Originally created by @LeeeeeeM on GitHub (Mar 25, 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.1.3

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

1、when i switch to mobile mode, and some of my opening words are too long.

Image

The layout starts to get messy, and the header disappears.

2、When my prompts are too many and the layout exceeds 50vh, the layout also becomes messy.

Image

✔️ Expected Behavior

correct layout ui

Actual Behavior

chaos

Originally created by @LeeeeeeM on GitHub (Mar 25, 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.1.3 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce 1、when i switch to mobile mode, and some of my opening words are too long. ![Image](https://github.com/user-attachments/assets/d712e266-021d-477a-866a-95b8f6d028b5) The layout starts to get messy, and the header disappears. 2、When my prompts are too many and the layout exceeds 50vh, the layout also becomes messy. ![Image](https://github.com/user-attachments/assets/8fb09d88-7f5e-43f9-90a7-664e67069be1) ### ✔️ Expected Behavior correct layout ui ### ❌ Actual Behavior chaos
yindo added the 🐞 buggood first issue labels 2026-02-21 19:05:58 -05:00
yindo closed this issue 2026-02-21 19:05:59 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 25, 2025):

To address the UI layout bug in the mobile version of your self-hosted Dify application, you can consider the following solutions:

  1. Temporary Fix: Add the CSS class overflow-y-scroll to the chat container. This will enable proper scrolling functionality and help maintain the visibility of the input field when the content is too long or exceeds 50vh.

  2. Permanent Fix: Update to the version that includes the fixes from pull request #15601. This update addresses mobile scrolling and interface expansion issues, providing a more robust solution to the layout problems [1][2].

Additionally, you might want to check if there are any existing media queries or JavaScript functions in your codebase that handle mobile-specific layout adjustments, as these could also be contributing to the issue.

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 (Mar 25, 2025): <!-- Answer --> To address the UI layout bug in the mobile version of your self-hosted Dify application, you can consider the following solutions: 1. **Temporary Fix**: Add the CSS class `overflow-y-scroll` to the chat container. This will enable proper scrolling functionality and help maintain the visibility of the input field when the content is too long or exceeds 50vh. 2. **Permanent Fix**: Update to the version that includes the fixes from pull request #15601. This update addresses mobile scrolling and interface expansion issues, providing a more robust solution to the layout problems <sup>[[1]](https://github.com/langgenius/dify/issues/15774)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/15076)</sup>. Additionally, you might want to check if there are any existing media queries or JavaScript functions in your codebase that handle mobile-specific layout adjustments, as these could also be contributing to the issue. <!-- 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/dffd549c-3415-48ec-b2d2-f816571aa303?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/dffd549c-3415-48ec-b2d2-f816571aa303?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/dffd549c-3415-48ec-b2d2-f816571aa303?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/dffd549c-3415-48ec-b2d2-f816571aa303?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/dffd549c-3415-48ec-b2d2-f816571aa303?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/dffd549c-3415-48ec-b2d2-f816571aa303?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/dffd549c-3415-48ec-b2d2-f816571aa303?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#12139