1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

Improved the manual search releases dropdown

This commit is contained in:
morpheus65535 2021-03-28 19:03:24 -04:00
parent 25894c477f
commit b50e7f4fff

View file

@ -126,7 +126,7 @@ export const ManualSearchModal: FunctionComponent<Props & BaseModalProps> = (
const items = useMemo( const items = useMemo(
() => () =>
value.slice(1).map((v, idx) => ( value.map((v, idx) => (
<Dropdown.Item key={idx} disabled className="text-dark"> <Dropdown.Item key={idx} disabled className="text-dark">
{v} {v}
</Dropdown.Item> </Dropdown.Item>
@ -139,9 +139,10 @@ export const ManualSearchModal: FunctionComponent<Props & BaseModalProps> = (
return ( return (
<Dropdown> <Dropdown>
<Dropdown.Toggle <Dropdown.Toggle
disabled={value.length === 1}
className="dropdown-hidden text-dark dropdown-toggle-wrap" className="dropdown-hidden text-dark dropdown-toggle-wrap"
variant={value.length === 1 ? "link" : "light"} title={display}
variant={"light"}
size={"sm"}
> >
<span>{display}</span> <span>{display}</span>
</Dropdown.Toggle> </Dropdown.Toggle>