Skip to content

Commit

Permalink
Use style props for padding
Browse files Browse the repository at this point in the history
  • Loading branch information
laratran committed Dec 8, 2023
1 parent 9b01736 commit cacdb5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@
}

.inner-expanded {
padding: 16px !important;
border-bottom: rem(1px) solid var(--_table-border-color) !important;
}

.inner-collapsed {
padding: 0 !important;
border-bottom: rem(1px) solid var(--_table-border-color);
}

.inner-virtual {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ export const MRT_TableDetailPanel = <TData extends Record<string, any> = {}>({
'mantine-Table-td-detail-panel',
classes.inner,
layoutMode?.startsWith('grid') && classes['inner-grid'],
row.getIsExpanded() ? classes['inner-expanded'] : classes['inner-collapsed'],
row.getIsExpanded() && classes['inner-expanded'],
virtualRow && classes['inner-virtual'],
)}
p={row.getIsExpanded() ? "md" : 0}
>
{renderDetailPanel && (
<Collapse in={row.getIsExpanded()}>
Expand Down

0 comments on commit cacdb5e

Please sign in to comment.