Skip to content

Commit

Permalink
refactor(web/notifications): increase description font size if no title
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Jan 11, 2023
1 parent 9a92729 commit b8e9602
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion web/src/features/notifications/NotificationWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ const useStyles = createStyles((theme) => ({
color: theme.colors.dark[2],
fontFamily: 'Roboto',
},
descriptionOnly: {
fontSize: 14,
color: theme.colors.dark[2],
fontFamily: 'Roboto',
},
}));

// I hate this
Expand Down Expand Up @@ -174,7 +179,11 @@ const Notifications: React.FC = () => {
)}
<Stack spacing={0}>
{data.title && <Text className={classes.title}>{data.title}</Text>}
{data.description && <ReactMarkdown className={classes.description}>{data.description}</ReactMarkdown>}
{data.description && (
<ReactMarkdown className={!data.title ? classes.descriptionOnly : classes.description}>
{data.description}
</ReactMarkdown>
)}
</Stack>
</Group>
</Box>
Expand Down

0 comments on commit b8e9602

Please sign in to comment.