Skip to content

Conversation

@abdimo101
Copy link
Member

@abdimo101 abdimo101 commented Jan 19, 2026

Description

Before:
image
After:
image

Motivation

Background on use case, changes needed

Fixes:

Please provide a list of the fixes implemented in this PR

  • Items added

Changes:

Please provide a list of the changes implemented by this PR

  • changes made

Tests included

  • Included for each change/fix?
  • Passing? (Merge will not be approved unless this is checked)

Documentation

  • swagger documentation updated [required]
  • official documentation updated [nice-to-have]

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

  • Does it require a specific version of the backend
  • which version of the backend is required:

Summary by Sourcery

Compact the dynamic material table layout and related search/pagination controls.

Enhancements:

  • Add a bottom border to dynamic tables for clearer visual separation.
  • Reduce header and data row height to make the table more compact.
  • Tighten vertical spacing around the search and filter container to reduce empty space and overall table footprint.

@abdimo101 abdimo101 requested a review from a team as a code owner January 19, 2026 15:24
@abdimo101 abdimo101 requested a review from Junjiequan January 19, 2026 15:25
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a 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 !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.
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.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this ?

Copy link
Member Author

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

Copy link
Member

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

Copy link
Member

@Junjiequan Junjiequan left a 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;
Copy link
Member

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
Copy link
Member

image THe top border also cuts off when user is not logged in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants