-
Notifications
You must be signed in to change notification settings - Fork 35
refactor: make search/pagination & dynamic mat table headers more compact #2185
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
base: master
Are you sure you want to change the base?
Conversation
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 - I've left some high level feedback:
- The use of
!importantonmat-header-row.headerandmat-row.table-rowcan make future styling overrides difficult; consider increasing selector specificity or adjusting the base styles instead of relying on!important. - Hardcoded colors like
#d2d2d2and#efefefmay diverge from the design system or theme; consider using existing theme variables or SCSS variables for these borders/backgrounds. - The fixed
40pxrow height on all header and data rows may not accommodate multi-line content or larger text; verify that this constraint won’t cause layout issues and consider usingmin-heightonly or responsive adjustments if necessary.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The use of `!important` on `mat-header-row.header` and `mat-row.table-row` can make future styling overrides difficult; consider increasing selector specificity or adjusting the base styles instead of relying on `!important`.
- Hardcoded colors like `#d2d2d2` and `#efefef` may diverge from the design system or theme; consider using existing theme variables or SCSS variables for these borders/backgrounds.
- The fixed `40px` row height on all header and data rows may not accommodate multi-line content or larger text; verify that this constraint won’t cause layout issues and consider using `min-height` only or responsive adjustments if necessary.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| .dynamic-table { | ||
| min-width: 100%; | ||
| width: max-content; | ||
| border-bottom: 1px solid #d2d2d2; |
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.
Do we need this ?
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.
When I set the height of each row (lines 106-111), it cuts off the last rows bottom border, which is why this is needed
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.
If it custs off the bottom space, there might be some css issues.
could you check if it is easy to fix, if it's tricky to fix we just merge it
Junjiequan
left a comment
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.
Looks fine to me, just a left one comment
| .dynamic-table { | ||
| min-width: 100%; | ||
| width: max-content; | ||
| border-bottom: 1px solid #d2d2d2; |
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.
If it custs off the bottom space, there might be some css issues.
could you check if it is easy to fix, if it's tricky to fix we just merge it

Description
Before:


After:
Motivation
Background on use case, changes needed
Fixes:
Please provide a list of the fixes implemented in this PR
Changes:
Please provide a list of the changes implemented by this PR
Tests included
Documentation
official documentation info
If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included
Backend version
Summary by Sourcery
Compact the dynamic material table layout and related search/pagination controls.
Enhancements: