Skip to content

Commit

Permalink
fix(component-library): fix styling of data table toolbar header
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Jan 17, 2025
1 parent 045b002 commit a8d3340
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-crabs-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shopware-ag/meteor-component-library": patch
---

hide data table toolbar when it has no header
Original file line number Diff line number Diff line change
Expand Up @@ -2008,6 +2008,10 @@ $tableCellPadding: $tableCellPaddingTop $tableCellPaddingRight $tableCellPadding
.mt-card__toolbar {
flex-direction: column;
gap: 0;
&:has(.mt-data-table__toolbar:empty) {
padding: 0;
}
}
.mt-data-table__search {
Expand Down Expand Up @@ -2053,6 +2057,10 @@ $tableCellPadding: $tableCellPaddingTop $tableCellPaddingRight $tableCellPadding
display: flex;
align-items: center;
gap: var(--scale-size-8);
&:empty {
display: none;
}
}
// TODO: improve the name of this css selector
Expand Down

0 comments on commit a8d3340

Please sign in to comment.