only show scroll bar when needed
All checks were successful
deploy / deploy (push) Successful in 43s

This commit is contained in:
Lee 2023-10-20 12:15:51 +01:00
parent a78d66c74e
commit da380fb603

@ -52,7 +52,7 @@ export default function SearchPlayer() {
<div
className={clsx(
"absolute z-20 mt-7 flex max-h-[400px] min-w-[14rem] flex-col divide-y overflow-y-scroll rounded-md bg-gray-700 shadow-sm",
"absolute z-20 mt-7 flex max-h-[400px] min-w-[14rem] flex-col divide-y overflow-y-auto rounded-md bg-gray-700 shadow-sm",
players.length > 0 ? "flex" : "hidden",
)}
>