-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust Paged styles and PaginatedList with size value to false + fix …
…TotalLayou Header height
- Loading branch information
paola-p
committed
Jan 11, 2024
1 parent
abd6ed4
commit b406c82
Showing
3 changed files
with
39 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 29 additions & 32 deletions
61
packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.styles.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,35 @@ | ||
import { createStyles } from '@mantine/styles'; | ||
|
||
const TotalLayoutHeaderStyles = createStyles( | ||
(theme, { children, direction, compact, hasIcon, iconLarge }) => { | ||
const expandedHeader = direction === 'column' && children; | ||
return { | ||
root: {}, | ||
headerContainer: { | ||
padding: `${!expandedHeader ? '16px' : '12px'} 24px`, | ||
backgroundColor: 'white', | ||
minHeight: 72, | ||
}, | ||
header: { height: '40px' }, | ||
headerTools: { marginTop: '12px' }, | ||
iconContainer: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
fontSize: iconLarge ? '2.8rem' : '1.4rem', | ||
width: iconLarge ? 48 : 32, | ||
height: iconLarge ? 48 : 32, | ||
textAlign: 'center', | ||
marginRight: 16, | ||
borderRadius: !hasIcon && 4, | ||
backgroundColor: !hasIcon && '#C4C4C4', | ||
}, | ||
headerTitle: { fontSize: '18px', fontWeight: 600, lineHeight: '24px' }, | ||
headerSubtitle: { | ||
fontSize: '18px', | ||
fontWeight: 400, | ||
lineHeight: '24px', | ||
// marginLeft: !compact && '40px', | ||
}, | ||
}; | ||
}, | ||
(theme, { children, direction, compact, hasIcon, iconLarge }) => ({ | ||
root: {}, | ||
headerContainer: { | ||
padding: `12px 24px`, | ||
backgroundColor: 'white', | ||
minHeight: 72, | ||
}, | ||
header: { height: '40px' }, | ||
headerTools: { marginTop: '12px' }, | ||
iconContainer: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
fontSize: iconLarge ? '2.8rem' : '1.4rem', | ||
width: iconLarge ? 48 : 32, | ||
height: iconLarge ? 48 : 32, | ||
textAlign: 'center', | ||
marginRight: 16, | ||
borderRadius: !hasIcon && 4, | ||
backgroundColor: !hasIcon && '#C4C4C4', | ||
}, | ||
headerTitle: { fontSize: '18px', fontWeight: 600, lineHeight: '24px' }, | ||
headerSubtitle: { | ||
fontSize: '18px', | ||
fontWeight: 400, | ||
lineHeight: '24px', | ||
// marginLeft: !compact && '40px', | ||
}, | ||
}), | ||
); | ||
|
||
export { TotalLayoutHeaderStyles }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters