Skip to content

Commit

Permalink
Merge pull request #154 from osstotalsoft/users/achirca/ERPFINSLFO-36655
Browse files Browse the repository at this point in the history
Remove the padding of the card header when it contains only an icon #153
  • Loading branch information
DCosti authored Jan 10, 2025
2 parents 245c14c + 2fa2a77 commit a21ec9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/surfaces/Card/CardHeader/CardHeaderStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ const CardHeader = styled(MuiCardHeader, {
headerContentProps
}: Partial<StyledProps>) => ({
['&.MuiCardHeader-root']: {
...(filled && { backgroundColor: theme?.palette.grey[200], minHeight: '48px' }),
...(hasIcon ? { padding: 0 } : {})
...(filled && { backgroundColor: theme?.palette.grey[200], minHeight: '48px' })
},
['& .MuiCardHeader-avatar']: {
...(hasIcon && {
Expand Down

0 comments on commit a21ec9f

Please sign in to comment.