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:
parent
25894c477f
commit
b50e7f4fff
1 changed files with 4 additions and 3 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue