-
Notifications
You must be signed in to change notification settings - Fork 309
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
refactor(Layout): enhance layout styles #4679
Conversation
Reviewer's Guide by SourceryThis PR refactors the Layout component's styles and structure to improve maintainability and mobile responsiveness. The changes include reorganizing SCSS code, removing deprecated features, and enhancing the responsive behavior of the layout components. Class diagram for Layout component refactorclassDiagram
class Layout {
+bool IsPage
+bool IsFullSide
+bool IsFixedHeader
+bool IsFixedFooter
+bool ShowFooter
+bool UseTabSet
+void Update()
+void ToggleSidebar()
+void ClickMenu(MenuItem item)
+void TriggerCollapseChanged()
}
note for Layout "IsPage is deprecated and should be removed."
class PageLayout {
+bool IsFixedTab
+bool IsFixedHeader
+bool IsFixedFooter
+bool IsFullSide
+bool ShowFooter
+bool UseTabSet
+void Update()
}
Layout <|-- PageLayout : inherits
class LayoutPages {
+List<SelectedItem> SideBarItems
+SelectedItem ActiveItem
+void OnInitialized()
+Task OnFooterChanged(bool val)
+Task OnTabStateChanged(CheckboxState state, bool val)
+Task OnHeaderStateChanged(CheckboxState state, bool val)
+Task OnSideChanged(IEnumerable<SelectedItem> values, SelectedItem item)
+Task OnUseTabSetChanged(bool val)
+void Update()
}
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @ArgoZhang - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider documenting the new layout.css file and its purpose in the PR description, as this is a significant architectural change that other developers need to be aware of.
- The removal of the IsPage parameter is a breaking change - please add a migration note to help users update their code.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
# Conflicts: # src/BootstrapBlazor.Server/Locales/en-US.json # src/BootstrapBlazor.Server/Locales/zh-CN.json
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4679 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 620 620
Lines 27427 27384 -43
Branches 3928 3929 +1
=========================================
- Hits 27427 27384 -43 ☔ View full report in Codecov by Sentry. |
enhance layout styles
Summary of the changes (Less than 80 chars)
简单描述你更改了什么, 不超过80个字符;如果有关联 Issue 请在下方填写相关编号
Description
fixes #4678
Regression?
[If yes, specify the version the behavior has regressed from]
[是否影响老版本]
Risk
[Justify the selection above]
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Enhance layout styles by refactoring CSS for better visual consistency and responsiveness. Update layout components to remove deprecated properties and improve configuration. Adjust documentation and tests to align with the new layout behavior.
Enhancements:
Documentation:
Tests: