Skip to content
TypeScript

fix(web): model picker opens at its final height instead of shrinking (#26881)

olivercfe28f0646d0
diff --git a/apps/web/src/components/chat/ModelPickerContent.tsx b/apps/web/src/components/chat/ModelPickerContent.tsx
index 6e35ebb5f7e..0db47deb289 100644
--- a/apps/web/src/components/chat/ModelPickerContent.tsx
+++ b/apps/web/src/components/chat/ModelPickerContent.tsx
@@ -162,7 +162,7 @@ function adjacentModelPickerProvider(input: {
}
const EMPTY_MODEL_JUMP_LABELS = new Map<string, string>();
-const MODEL_LIST_ESTIMATED_ITEM_SIZE = 52;
+const MODEL_LIST_ESTIMATED_ITEM_SIZE = 32;
// Rendered heights in `--spacing` units. Chrome is the search box and list padding, plus a 1px border.
const ONE_LINE_ROW_UNITS = 8;
const TWO_LINE_ROW_UNITS = 12;