styles: fix dropdown sorting styles (#238)
This commit is contained in:
parent
0354877581
commit
737715e1e3
|
|
@ -96,7 +96,7 @@ const DropdownButton: React.FC<DropdownButtonProps> = ({
|
|||
{selectedValue && selectedValue.label ? selectedValue.label : 'Select'}
|
||||
</span>
|
||||
<span
|
||||
className={`pointer-events-none absolute inset-y-0 right-0 flex items-center pr-4 ${textColorCss}`}
|
||||
className={`pointer-events-none absolute top-1 bottom-0 right-0 flex items-center pr-4 ${textColorCss}`}
|
||||
>
|
||||
<Icon name="chevron-down" />
|
||||
</span>
|
||||
|
|
@ -172,7 +172,7 @@ export const Dropdown: React.FC<DropdownProps> = ({
|
|||
leaveTo="opacity-0"
|
||||
>
|
||||
<Listbox.Options
|
||||
className={`absolute mt-1 max-h-32 ${width} right-0 z-10 overflow-auto rounded-xl bg-black px-3 pt-2 border-solid border-slate6 border text-base focus:outline-none sm:text-sm`}
|
||||
className={`absolute mt-1 max-h-36 ${width} right-0 z-10 overflow-auto rounded-xl bg-black px-3 pt-2 border-solid border-slate6 border text-base focus:outline-none sm:text-sm`}
|
||||
>
|
||||
{items.map((option: DropdownItem) => (
|
||||
<DropdownOption key={option.value} option={option} />
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ import { NFASearchFragmentStyles as S } from './nfa-search.styles';
|
|||
const orderResults: DropdownItem[] = [
|
||||
{ value: 'newest', label: 'Newest' },
|
||||
{ value: 'oldest', label: 'Oldest' },
|
||||
{ value: 'a-z', label: 'Name A-Z' },
|
||||
{ value: 'z-a', label: 'Name Z-A' },
|
||||
{ value: 'a-z', label: 'Sort A-Z' },
|
||||
{ value: 'z-a', label: 'Sort Z-A' },
|
||||
];
|
||||
|
||||
export const NFASearchFragment: React.FC = () => {
|
||||
|
|
|
|||
|
|
@ -31,6 +31,10 @@ export const NFASearchFragmentStyles = {
|
|||
width: '100%',
|
||||
maxWidth: '30rem',
|
||||
justifySelf: 'center',
|
||||
|
||||
button: {
|
||||
minWidth: '$28',
|
||||
},
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue