fix: make model selector dropdowns responsive to viewport

This commit is contained in:
Bohdan Triapitsyn
2026-01-04 01:24:29 +02:00
parent d86105fcb2
commit 9d1aceeb6d
4 changed files with 21 additions and 4 deletions
@@ -1870,7 +1870,7 @@ export const ModelControls: React.FC<ModelControlsProps> = ({ className }) => {
</div>
{/* Scrollable content */}
<ScrollableOverlay outerClassName="max-h-[400px] flex-1">
<ScrollableOverlay outerClassName="max-h-[min(400px,calc(100dvh-12rem))] flex-1">
<div className="p-1">
{!hasResults && (
<div className="px-2 py-4 text-center typography-meta text-muted-foreground">