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): send as an up arrow, and stop the action buttons being squeezed
Elian Doran4183185f143b
diff --git a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.cssindex 5403f86fc5..74b28289d3 100644--- a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css+++ b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css@@ -409,7 +409,16 @@ body[dir=rtl] .llm-chat-input-form .llm-chat-model-select.select-button.dropdown/** Trailing actions. Both are sized through the theme's `--icon-button-*` knobs* rather than by overriding width/border, which the theme locks with `!important`.+ *+ * `flex-shrink: 0` because the theme's `width` is a basis a flex container is free to+ * shrink below: a long model name or note title would otherwise squeeze these two into+ * ovals. They are fixed-size targets — the model selector is the item that gives.*/+.llm-chat-input-form .llm-chat-attach-btn.icon-action,+.llm-chat-input-form .llm-chat-send-btn.icon-action {+ flex-shrink: 0;+}+.llm-chat-input-form .llm-chat-attach-btn.icon-action {--icon-button-size: 30px;--icon-button-icon-ratio: 0.6;@@ -420,7 +429,9 @@ body[dir=rtl] .llm-chat-input-form .llm-chat-model-select.select-button.dropdowndefines a brand accent variable. */.llm-chat-input-form .llm-chat-send-btn.icon-action {--icon-button-size: 32px;- --icon-button-icon-ratio: 0.55;+ /* A touch larger than the paper plane it replaced: an arrow glyph carries less ink+ and reads smaller at the same nominal size. */+ --icon-button-icon-ratio: 0.65;--icon-button-color: var(--main-background-color);--icon-button-hover-color: var(--main-background-color);--icon-button-hover-background: var(--main-text-color);diff --git a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.tsx b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.tsxindex c0ed7c50b0..8d0c9496c7 100644--- a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.tsx+++ b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.tsx@@ -476,7 +476,7 @@ export default function ChatInputBar({className="llm-chat-attach-btn"/><ActionButton- icon={chat.isStreaming ? "bx bx-stop" : "bx bx-send"}+ icon={chat.isStreaming ? "bx bx-stop" : "bx bx-up-arrow-alt"}text={chat.isStreaming? t("llm_chat.stop"): !currentModel ? t("llm_chat.no_model_selected") : t("llm_chat.send")}