Enhance country and object type display styles in App.css and update related components for improved UI consistency. Added class names for better styling control and adjusted opacity settings for focused states.

This commit is contained in:
Tom Butcher 2026-07-13 00:18:07 +01:00
parent 65aaf57bad
commit 5f12347ec2
4 changed files with 13 additions and 4 deletions

View File

@ -80,12 +80,20 @@
font-size: 95%; font-size: 95%;
} }
.object-display-tag { .ant-select-selection-item .country-display {
margin-left: 1px !important;
}
.object-display-tag,
.object-type-display-tag,
.country-display {
opacity: 1; opacity: 1;
transition: opacity 0.15s ease-in-out; transition: opacity 0.15s ease-in-out;
} }
.ant-select-focused .object-display-tag { .ant-select-focused .object-display-tag,
.ant-select-focused .object-type-display-tag,
.ant-select-focused .country-display {
opacity: 0.5; opacity: 0.5;
} }

View File

@ -13,7 +13,7 @@ const CountryDisplay = ({ countryCode }) => {
} }
return ( return (
<Flex gap={'small'} align='center'> <Flex gap={'small'} align='center' className='country-display'>
<Flag <Flag
code={country.code} code={country.code}
size='middle' size='middle'

View File

@ -28,7 +28,7 @@ const CountrySelect = ({
value: country.code, value: country.code,
name: country.name, name: country.name,
label: ( label: (
<Flex gap='small' align='center'> <Flex gap='small' align='center' className='country-display'>
<Flag code={country.code} size='small' borderRadius={3} /> <Flag code={country.code} size='small' borderRadius={3} />
<Text elipsis>{country.name}</Text> <Text elipsis>{country.name}</Text>
</Flex> </Flex>

View File

@ -28,6 +28,7 @@ const ObjectTypeDisplay = ({
color={color} color={color}
style={{ margin: 0, ...style }} style={{ margin: 0, ...style }}
icon={showIcon && Icon ? <Icon /> : undefined} icon={showIcon && Icon ? <Icon /> : undefined}
className='object-type-display-tag'
> >
{showLabel && model.label && model.label} {showLabel && model.label && model.label}
</Tag> </Tag>