mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
fix(web): Ensure font awesome icons have fixed width
This commit is contained in:
@@ -85,6 +85,7 @@ const Notifications: React.FC = () => {
|
||||
<HStack spacing={0}>
|
||||
{data.icon && (
|
||||
<FontAwesomeIcon
|
||||
fixedWidth
|
||||
icon={data.icon}
|
||||
fontSize="1.3em"
|
||||
style={{ paddingRight: 8 }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user