ensure everythigng has a default max height in selectorformfield (#3174)

This commit is contained in:
pablodanswer 2024-11-20 09:26:22 -08:00 committed by GitHub
parent 9209fc804b
commit 2a54f14195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -662,7 +662,10 @@ export function SelectorFormField({
{container && (
<SelectContent
side={side}
className={maxHeight ? `max-h-[${maxHeight}]` : undefined}
className={`
${maxHeight ? `${maxHeight}` : "max-h-72"}
overflow-y-scroll
`}
container={container}
>
{options.length === 0 ? (

View File

@ -62,7 +62,9 @@ export const LlmList: React.FC<LlmListProps> = ({
return (
<div
className={`${scrollable ? "max-h-[200px] include-scrollbar" : "max-h-[300px]"} bg-background-175 flex flex-col gap-y-1 overflow-y-scroll`}
className={`${
scrollable ? "max-h-[200px] include-scrollbar" : "max-h-[300px]"
} bg-background-175 flex flex-col gap-y-1 overflow-y-scroll`}
>
{userDefault && (
<button