I am struggling to get padding around the icon in my New-UDListItem and the text next to it, I cannot for the life of me figure it out. I am not using any themes currently, and the navigation built with New-UDListItem has padding set already, but not in this modal. Can anyone assist me?
Set-UDElement -Id 'results' -Content {
Show-UDModal -Content {
New-UDRow -Columns {
New-UDColumn -Content {
New-UDList -Content {
New-UDListItem -Label 'EmployeeID' -Icon (New-UDIcon -Icon 'Hashtag' -Size '2x') -SubTitle $EMPLOYEEID
New-UDListItem -Label 'Name' -Icon (New-UDIcon -Icon 'AddressCard' -Size '2x') -SubTitle $Name
New-UDListItem -Label 'Title' -Icon (New-UDIcon -Icon 'AddressCard' -Size '2x') -SubTitle $Title
New-UDListItem -Label 'AD Username' -Icon (New-UDIcon -Icon 'AddressCard' -Size '2x') -SubTitle $Username
New-UDListItem -Label 'Facility' -Icon (New-UDIcon -Icon 'building' -Size '2x') -SubTitle $Office
New-UDListItem -Label 'EID Active' -Icon (New-UDIcon -Icon 'LockOpen' -Size '2x') -SubTitle 'Yes'
}
}
}
} -Header {
New-UDTypography -Text "Employee ID $EIDLookup already has an account" -Variant 'h6' -FontWeight 'bold'
} -Footer {
New-UDButton -Text 'Close' -OnClick {
Hide-UDModal
}
} -Persistent
}
....
## I have a couple more modals built similarly and I end with my New-UdElement
....
New-UDElement -Id 'results' -Tag 'div'
Product: PowerShell Universal
Version: 3.7.10