fix(ui): small ui fixes and improvements (#550)

This commit is contained in:
Delirium 2022-06-22 16:51:53 +02:00 committed by GitHub
parent 0ef43a30fd
commit ee373cc0b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 5 deletions

View file

@ -12,14 +12,14 @@ const CountryFlag = React.memo(({ country, className, style = {}, label = false
return (
<div className="flex items-center" style={style}>
{knownCountry
? <div className={ cn(`mr-1 flag flag-${ countryFlag }`, className, stl.default) } />
? <div className={ cn(`flag flag-${ countryFlag }`, className, stl.default) } />
: (
<div className="flex items-center w-full">
<Icon name="flag-na" size="22" className="" />
<div className="ml-2 leading-none" style={{ whiteSpace: 'nowrap'}}>Unknown Country</div>
</div>
)}
{ knownCountry && label && <div className={ stl.label }>{ countryName }</div> }
{ knownCountry && label && <div className={ cn(stl.label, 'ml-1') }>{ countryName }</div> }
</div>
);
})

View file

@ -61,9 +61,9 @@ export default class ItemMenu extends React.PureComponent {
<div
key={ text }
onClick={ !disabled ? this.onClick(onClick) : () => {} }
className={disabled ? 'cursor-not-allowed' : ''}
role="menuitem"
tabIndex="-1"
className=""
>
<Popup
delay={500}

View file

@ -20,4 +20,4 @@ module.exports = {
"Shared/*": path.resolve(__dirname, "app/components/shared/*"),
"Player": path.resolve(__dirname, "app/player"),
"Player/*": path.resolve(__dirname, "app/player/*"),
};
};

View file

@ -15,6 +15,15 @@
"noEmit": true,
"jsx": "react",
// "baseUrl": ".",
"paths": {
"Shared/*": ["./app/components/shared/*"],
"App/*": ["./app/*"],
"Components/*": ["./app/components/*"],
"UI/*": ["./app/components/ui/*"],
"UI": ["./app/components/ui"],
"Player/*": ["./app/player/*"],
"HOCs/*": ["./app/components/hocs/*"]
}
},
"include": ["app"]
}
}