mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-30 09:49:05 +02:00
Make dropdown longer
This commit is contained in:
@@ -37,7 +37,6 @@ import {
|
||||
type PrivateResourceMode
|
||||
} from "@app/lib/privateResourceForm";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { tierMatrix } from "@server/lib/billing/tierMatrix";
|
||||
import type { SiteResource } from "@server/db";
|
||||
import { GetSiteResponse } from "@server/routers/site/getSite";
|
||||
import type ResponseT from "@server/types/Response";
|
||||
@@ -350,6 +349,7 @@ export default function CreatePrivateResourcePage() {
|
||||
placeholder={t(
|
||||
"noneSelected"
|
||||
)}
|
||||
listClassName="max-h-[346px]"
|
||||
/>
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
|
||||
@@ -33,6 +33,7 @@ type DescribedSelectProps<TValue extends string> = {
|
||||
placeholder?: string;
|
||||
disabled?: boolean;
|
||||
className?: string;
|
||||
listClassName?: string;
|
||||
};
|
||||
|
||||
export function DescribedSelect<TValue extends string>({
|
||||
@@ -43,7 +44,8 @@ export function DescribedSelect<TValue extends string>({
|
||||
emptyMessage,
|
||||
placeholder,
|
||||
disabled,
|
||||
className
|
||||
className,
|
||||
listClassName
|
||||
}: DescribedSelectProps<TValue>) {
|
||||
const [open, setOpen] = useState(false);
|
||||
const selected = options.find((option) => option.value === value);
|
||||
@@ -75,7 +77,7 @@ export function DescribedSelect<TValue extends string>({
|
||||
>
|
||||
<Command>
|
||||
<CommandInput placeholder={searchPlaceholder} />
|
||||
<CommandList>
|
||||
<CommandList className={listClassName}>
|
||||
<CommandEmpty>{emptyMessage}</CommandEmpty>
|
||||
<CommandGroup>
|
||||
{options.map((option) => (
|
||||
|
||||
Reference in New Issue
Block a user