Skip to content

Commit

Permalink
Fix: uneven icon margin
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Jan 28, 2022
2 parents 5241583 + 3e93e91 commit 6e1d8a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/MTableSummaryRow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function MTableSummaryRow({
let value = '';
let style = getStyle({ columnDef: column, scrollWidth: 0 });

if (typeof summaryColumn === 'object') {
if (typeof summaryColumn === 'object' && summaryColumn !== null) {
value = summaryColumn.value;
style = summaryColumn.style;
} else {
Expand Down
3 changes: 0 additions & 3 deletions src/components/MTableToolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export function MTableToolbar(props) {
disabled={!searchText}
onClick={() => onSearchChange('')}
aria-label={localization.clearSearchAriaLabel}
size="large"
>
<props.icons.ResetSearch
fontSize="small"
Expand Down Expand Up @@ -140,7 +139,6 @@ export function MTableToolbar(props) {
setColumnsButtonAnchorEl(event.currentTarget)
}
aria-label={localization.showColumnsAriaLabel}
size="large"
>
<props.icons.ViewColumn />
</IconButton>
Expand Down Expand Up @@ -209,7 +207,6 @@ export function MTableToolbar(props) {
setExportButtonAnchorEl(event.currentTarget)
}
aria-label={localization.exportAriaLabel}
size="large"
>
<props.icons.Export />
</IconButton>
Expand Down

0 comments on commit 6e1d8a7

Please sign in to comment.