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
feat(llm_chat): show only icons on the model pickers when the input is narrow
Elian Doranbd4085643f07
diff --git a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.cssindex d343489522..d9eb34bbbe 100644--- a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css+++ b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css@@ -203,11 +203,26 @@/* Control row, inside the island */.llm-chat-options {+ container: llm-chat-options / inline-size;display: flex;align-items: center;gap: 0.25rem;}+/* Compact: the model and reasoning effort pickers show only their icon; the tooltips carry the+ model name and the level. The label collapses to no width rather than `display: none`, so its+ line of text still sets the button's height. */+@container llm-chat-options (width < 23rem) {+ .llm-chat-input-form .llm-chat-model-select .llm-chat-model-select-name:not(.llm-chat-model-placeholder) {+ width: 0;+ }++ .llm-chat-input-form .llm-chat-model-select .llm-chat-model-icon,+ .llm-chat-input-form .llm-chat-model-select .llm-chat-reasoning-effort-icon {+ margin-inline-end: 0;+ }+}+/* Model selector */.llm-chat-model-selector {display: flex;