-
Notifications
You must be signed in to change notification settings - Fork 330
fix: [grid] release319, update website to fix layout in small screen #2493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -196,9 +196,12 @@ export default defineComponent({ | |||||||||||||||||||||||||
| .content-layout { | ||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||
| --layout-tree-menu-input-height: 32px; | ||||||||||||||||||||||||||
| --layout-content-main-min-width: 600px; | ||||||||||||||||||||||||||
| --layout-content-main-min-width: 200px; | ||||||||||||||||||||||||||
| --layout-content-main-max-width: 1000px; | ||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
| @media screen and (max-width: 640px) { | ||||||||||||||||||||||||||
| --layout-content-main-min-width: 600px; | ||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
|
Comment on lines
+199
to
+204
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix incorrect responsive design logic in media query. There appears to be a logical error in the responsive design implementation. Currently:
This is counterintuitive as smaller screens are being assigned a larger minimum width than larger screens, which could worsen the layout issues on mobile devices rather than fixing them. Consider reversing the logic to: .content-layout {
display: flex;
--layout-tree-menu-input-height: 32px;
- --layout-content-main-min-width: 200px;
+ --layout-content-main-min-width: 600px;
--layout-content-main-max-width: 1000px;
}
@media screen and (max-width: 640px) {
- --layout-content-main-min-width: 600px;
+ --layout-content-main-min-width: 200px;
}This way:
📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| .tiny-tooltip.tiny-tooltip__popper.is-light.docs-tooltip { | ||||||||||||||||||||||||||
| border: none; | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Based on the search results, I can generate the final response as we have sufficient information about the breakpoint usage across the codebase.
Consider aligning mobile breakpoint with existing patterns
The codebase predominantly uses
767pxfor mobile breakpoints, while your implementation uses640px. Consider updating to767pxto maintain consistency with other mobile-specific media queries in:🔗 Analysis chain
Verify mobile breakpoint across different devices.
The mobile-responsive CSS implementation looks good. However, please verify that the 640px breakpoint works well across various mobile devices and orientations.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 1770