Skip to content

Commit

Permalink
fix(web): Ensure font awesome icons have fixed width
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Apr 16, 2022
1 parent 66f9460 commit e46fa20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/src/features/notifications/NotificationWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const Notifications: React.FC = () => {
<HStack spacing={0}>
{data.icon && (
<FontAwesomeIcon
fixedWidth
icon={data.icon}
fontSize="1.3em"
style={{ paddingRight: 8 }}
Expand Down
3 changes: 2 additions & 1 deletion web/src/features/textui/TextUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ const TextUI: React.FC = () => {
<Flex justifyContent="center" alignItems="center">
{data.icon && (
<FontAwesomeIcon
fixedWidth
icon={data.icon}
color={data.iconColor}
fontSize="1.4rem"
style={{ paddingRight: 15 }}
style={{ paddingRight: 8 }}
/>
)}
<ReactMarkdown>{data.text}</ReactMarkdown>
Expand Down

0 comments on commit e46fa20

Please sign in to comment.