-
Notifications
You must be signed in to change notification settings - Fork 11
feat: add spacing between title and table when title is set #718
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #718 +/- ##
==========================================
- Coverage 85.16% 85.15% -0.01%
==========================================
Files 784 784
Lines 16066 16064 -2
Branches 1997 1997
==========================================
- Hits 13682 13680 -2
Misses 2351 2351
Partials 33 33
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
changeDetection: ChangeDetectionStrategy.OnPush, | ||
template: ` | ||
<ht-titled-content | ||
class="table-title" |
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.
I see there's already a [ngClass]="{ 'header-margin': this.model.header?.topMargin }"
- is that the same thing? If the two don't have different purposes, can we resolve to one way of doing it?
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.
The header margin is for the table controls header. The new one is for the title that sits above that.
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.
I think that's a bug though - the header model where this top margin is defined is used for the title, not table controls. I'm guessing when table controls were added, it created an unintentional separation between the title and where that margin was applied. If you look where this is used today, it's only in one spot - backend overview, on a table that doesn't have controls (which is likely why the bug was never caught - it was still rendering the same).
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.
So the places (HT home dash) where the header is used without topMargin being set just look bad - they should have this property set. If we want to remove that property entirely and automatically add the appropriate padding if title is set, I think that works.
We just want to make sure we're not double padding it if that property is set, so we should do one or the other.
Description
Add spacing between title and table content if a title is provided.