Skip to content

Commit

Permalink
ensure everythigng has a default max height in selectorformfield
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 20, 2024
1 parent 9209fc8 commit c354912
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion web/src/components/admin/connectors/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
Expand Down
4 changes: 3 additions & 1 deletion web/src/components/llm/LLMList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c354912

Please sign in to comment.