You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0.15.3
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
Open the 'Create Knowledge Page' and proceed to Step One. Reduce the browser window width. In Step One, the section overflows its parent container.
I've identified the issue, which seems to be that the container for the file-uploader component is fixed at 640px in width. I have already fixed this problem in my forked repository and am ready to submit a pull request whenever you're available.
✔️ Expected Behavior
The file-uploader component should scale properly with the browser dimensions.
❌ Actual Behavior
This breaks the responsive layout of the page.
The text was updated successfully, but these errors were encountered:
Hello, @tdawn0-0! I'm here to help you with any bugs, questions, or contributions. Let's work together to resolve this issue.
To address the issue where the file-uploader component overflows its parent container during Step One, you can modify the CSS to ensure it fits within its container. The problem arises because the container is fixed at 640px in width. You can adjust the CSS to make the component responsive by using percentage-based widths or media queries.
Here's a suggested CSS modification:
/* index.module.css */
.fileUploaderContainer {
width:100%; /* Ensure the container takes full width of its parent */max-width:640px; /* Set a maximum width */overflow: hidden; /* Prevent content from overflowing */box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
Apply this class to the container of the FileUploader component in the JSX:
Self Checks
Dify version
0.15.3
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
Open the 'Create Knowledge Page' and proceed to Step One. Reduce the browser window width. In Step One, the section overflows its parent container.
I've identified the issue, which seems to be that the container for the
file-uploader
component is fixed at 640px in width. I have already fixed this problem in my forked repository and am ready to submit a pull request whenever you're available.✔️ Expected Behavior
The
file-uploader
component should scale properly with the browser dimensions.❌ Actual Behavior
This breaks the responsive layout of the page.
The text was updated successfully, but these errors were encountered: