Knowledge base settings page UI error #13197

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

Originally created by @ZeroZ-lab on GitHub (Apr 21, 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.2.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

Image

  1. Search box has no background set, causing bottom content to show through.
  2. Avatar letter z-index setting problem, covering the input box.
  3. Search box top padding setting caused gaps to show through.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @ZeroZ-lab on GitHub (Apr 21, 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.2.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/2430d00d-da43-4a6b-b35f-1f6ea7d05ae7) ![Image](https://github.com/user-attachments/assets/f71656de-915b-4fab-8d79-720e87230fd6) 1. Search box has no background set, causing bottom content to show through. 2. Avatar letter z-index setting problem, covering the input box. 3. Search box top padding setting caused gaps to show through. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:11:02 -05:00
yindo closed this issue 2026-02-21 19:11:02 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 21, 2025):

To address the UI issues on the Knowledge base settings page:

  1. Search Box Background: Ensure that the search box has a background color set to prevent the underlying content from showing through. You might need to check the CSS styles applied to the search box element and add or adjust the background-color property.

  2. Avatar Z-Index: The z-index issue with the avatar letters covering the input box can be resolved by adjusting the z-index values in the CSS. Make sure the input box has a higher z-index than the avatar elements. You can find the avatar styling in the codebase, where classes like mr-2 shrink-0 are used [1][2].

  3. Search Box Padding: The top padding of the search box might be causing gaps. You can adjust the padding settings in the CSS to ensure there are no unintended gaps. The padding for input boxes is configured using classes like p-3 py-2 [3].

Review these areas in your codebase to implement the necessary changes.

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 (Apr 21, 2025): <!-- Answer --> To address the UI issues on the Knowledge base settings page: 1. **Search Box Background**: Ensure that the search box has a background color set to prevent the underlying content from showing through. You might need to check the CSS styles applied to the search box element and add or adjust the `background-color` property. 2. **Avatar Z-Index**: The z-index issue with the avatar letters covering the input box can be resolved by adjusting the z-index values in the CSS. Make sure the input box has a higher z-index than the avatar elements. You can find the avatar styling in the codebase, where classes like `mr-2 shrink-0` are used <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/account/avatar.tsx)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/web/app/components/datasets/settings/permission-selector/index.tsx)</sup>. 3. **Search Box Padding**: The top padding of the search box might be causing gaps. You can adjust the padding settings in the CSS to ensure there are no unintended gaps. The padding for input boxes is configured using classes like `p-3 py-2` <sup>[[3]](https://github.com/langgenius/dify/blob/main/web/app/components/datasets/external-knowledge-base/create/KnowledgeBaseInfo.tsx)</sup>. Review these areas in your codebase to implement the necessary changes. <!-- 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/1dd5e55c-5fa0-4ed3-ad0c-147ef3231b33?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/1dd5e55c-5fa0-4ed3-ad0c-147ef3231b33?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/1dd5e55c-5fa0-4ed3-ad0c-147ef3231b33?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/1dd5e55c-5fa0-4ed3-ad0c-147ef3231b33?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1dd5e55c-5fa0-4ed3-ad0c-147ef3231b33?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/1dd5e55c-5fa0-4ed3-ad0c-147ef3231b33?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1dd5e55c-5fa0-4ed3-ad0c-147ef3231b33?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#13197