fixed: update ui

This commit is contained in:
LittleBoy 2024-07-30 10:50:16 +08:00
parent 8589265909
commit a2c94abf20

View File

@ -23,9 +23,10 @@ type CommonHeaderProps = {
}
const HeaderUserProfile = styled.div({
padding: '10px 20px 0',
minWidth: 120,
minWidth: 150,
fontSize: 12,
lineHeight: 1
lineHeight: 1,
cursor: 'default',
})
export const HeaderUserAvatar = () => {
const {t} = useTranslation()
@ -44,7 +45,7 @@ export const HeaderUserAvatar = () => {
<div style={{maxWidth:250,overflow:'hidden',whiteSpace:'nowrap',textOverflow:'ellipsis'}}>
<Typography.Text
type="quaternary"
size={'small'}>Department:{user?.department?.toUpperCase()}</Typography.Text>
size={'small'}>Department:{user?.department?.toUpperCase() || "N/A"}</Typography.Text>
</div>
<div>
<Typography.Text