mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-22 10:58:36 +00:00
feat(web): ability to align icon at the top for notifs/text ui
This commit is contained in:
1 parent
0daaf7a175
commit
a50f7a2052
8 files changed
+28
-2
No files matched your search
@@ -169,13 +169,22 @@ const Notifications: React.FC = () => {
|
||||
? 'yellow'
|
||||
: 'blue'
|
||||
}
|
||||
style={{ alignSelf: !data.alignIcon || data.alignIcon === 'center' ? 'center' : 'start' }}
|
||||
radius="xl"
|
||||
size={32}
|
||||
>
|
||||
<FontAwesomeIcon icon={data.icon} fixedWidth size="lg" />
|
||||
</Avatar>
|
||||
) : (
|
||||
<FontAwesomeIcon icon={data.icon} style={{ color: data.iconColor }} fixedWidth size="lg" />
|
||||
<FontAwesomeIcon
|
||||
icon={data.icon}
|
||||
style={{
|
||||
color: data.iconColor,
|
||||
alignSelf: !data.alignIcon || data.alignIcon === 'center' ? 'center' : 'start',
|
||||
}}
|
||||
fixedWidth
|
||||
size="lg"
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user