Skip to content

Commit

Permalink
Allow dropdown items to be wider than button
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Oct 20, 2024
1 parent 3b76b51 commit 07bfad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dropdowns/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ export function Dropdown<T>({
leaveFrom="opacity-100"
leaveTo="opacity-0"
>
<ListboxOptions className="absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm">
<ListboxOptions className="absolute z-10 mt-1 max-h-60 overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm">
{options.map((option, index) => (
<ListboxOption
key={index}
className={
"relative cursor-pointer select-none py-2 pl-3 pr-9 text-gray-900 hover:bg-wsg-orange-700"
"relative cursor-pointer select-none px-4 py-2 text-gray-900 hover:bg-wsg-orange-700"
}
value={option}
>
Expand Down

0 comments on commit 07bfad7

Please sign in to comment.