mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(web/notifications): adjust line height and icon size
This commit is contained in:
@@ -41,16 +41,19 @@ const useStyles = createStyles((theme) => ({
|
|||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
|
lineHeight: 'normal',
|
||||||
},
|
},
|
||||||
description: {
|
description: {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: theme.colors.dark[2],
|
color: theme.colors.dark[2],
|
||||||
fontFamily: 'Roboto',
|
fontFamily: 'Roboto',
|
||||||
|
lineHeight: 'normal',
|
||||||
},
|
},
|
||||||
descriptionOnly: {
|
descriptionOnly: {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: theme.colors.dark[2],
|
color: theme.colors.dark[2],
|
||||||
fontFamily: 'Roboto',
|
fontFamily: 'Roboto',
|
||||||
|
lineHeight: 'normal',
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -168,7 +171,7 @@ const Notifications: React.FC = () => {
|
|||||||
<Avatar
|
<Avatar
|
||||||
color={data.type === 'error' ? 'red' : data.type === 'success' ? 'teal' : 'blue'}
|
color={data.type === 'error' ? 'red' : data.type === 'success' ? 'teal' : 'blue'}
|
||||||
radius="xl"
|
radius="xl"
|
||||||
size={(data.title && !data.description) || (data.description && !data.title) ? 28 : undefined}
|
size={32}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={data.icon} fixedWidth size="lg" />
|
<FontAwesomeIcon icon={data.icon} fixedWidth size="lg" />
|
||||||
</Avatar>
|
</Avatar>
|
||||||
|
|||||||
Reference in New Issue
Block a user