Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(llm): let the model list fill the provider dialog
Elian Doran39d82c64a630
diff --git a/apps/client/src/widgets/type_widgets/options/llm/AddProviderModal.css b/apps/client/src/widgets/type_widgets/options/llm/AddProviderModal.cssindex 4126c61995..5b504eaadb 100644--- a/apps/client/src/widgets/type_widgets/options/llm/AddProviderModal.css+++ b/apps/client/src/widgets/type_widgets/options/llm/AddProviderModal.css@@ -20,6 +20,19 @@margin-bottom: 0;}+ .tn-card.add-provider-models {+ display: flex;+ flex-direction: column;+ max-height: 100%;++ .tn-card-body,+ .tn-card-section {+ display: flex;+ flex-direction: column;+ min-height: 0;+ }+ }+/* The picked provider's logo introducing the connection step, following thesetup wizard's illustrations: one large centred mark, muted so it staysdecoration rather than competing with the fields below it. */diff --git a/apps/client/src/widgets/type_widgets/options/llm/AddProviderModal.tsx b/apps/client/src/widgets/type_widgets/options/llm/AddProviderModal.tsxindex 329248af16..1b34b95606 100644--- a/apps/client/src/widgets/type_widgets/options/llm/AddProviderModal.tsx+++ b/apps/client/src/widgets/type_widgets/options/llm/AddProviderModal.tsx@@ -434,7 +434,7 @@ export default function AddProviderModal({ show, onHidden, onSave, existingProvi// models, same as a pre-selection migration), and allowing it avoids a// dead-end when the live model fetch fails.content: (- <Card heading={t("llm.select_models")}>+ <Card heading={t("llm.select_models")} className="add-provider-models"><CardSection noPadding><ModelSelectionquery={modelQuery}diff --git a/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.css b/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.cssindex ab700c0a6d..4450fa3995 100644--- a/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.css+++ b/apps/client/src/widgets/type_widgets/options/llm/ModelSelection.css@@ -21,8 +21,14 @@gap: 0.5em;}+.model-selection {+ display: flex;+ flex-direction: column;+ min-height: 0;+}+.model-selection-list {- max-height: 40vh;+ min-height: 0;overflow-y: auto;display: flex;flex-direction: column;