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(mind-map): say what the tag field wants, in the room the panel has
Elian Doran08cd4a1c51b9
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex b7beb8bf11..fc6a0c0b26 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -3532,8 +3532,9 @@"font-size-large": "L","font-size-extra-large": "XL","tags": "Tags",- "add-tag": "Add tag",- "remove-tag": "Remove tag"+ "tags-placeholder": "Type a tag and press Enter",+ "add-tag": "Add this tag",+ "remove-tag": "Remove this tag"},"llm": {"disabled_placeholder": "AI features are turned off. Enable them to configure providers and MCP.",diff --git a/apps/client/src/widgets/type_widgets/MindMapNodePanel.css b/apps/client/src/widgets/type_widgets/MindMapNodePanel.cssindex 0cfde51571..814e6c1523 100644--- a/apps/client/src/widgets/type_widgets/MindMapNodePanel.css+++ b/apps/client/src/widgets/type_widgets/MindMapNodePanel.css@@ -42,6 +42,16 @@}}+/*+ * The hint on the tag field is written for the fields this one is borrowed from, which have a note's+ * full width to sit in; here it runs a letter past the panel and is cut off. Set on the hint alone,+ * so that what is typed keeps the size of the panel's own text — and the field the height it had,+ * a placeholder having no say in that.+ */+.mind-map-node-panel .tn-field input::placeholder {+ font-size: 0.9em;+}+/* Each palette is meant to fit on one line; wrapping is only a safety net for larger cells. */.mind-map-node-panel .color-picker {flex-wrap: wrap;diff --git a/apps/client/src/widgets/type_widgets/MindMapNodePanel.tsx b/apps/client/src/widgets/type_widgets/MindMapNodePanel.tsxindex d63fc9d654..079cd136db 100644--- a/apps/client/src/widgets/type_widgets/MindMapNodePanel.tsx+++ b/apps/client/src/widgets/type_widgets/MindMapNodePanel.tsx@@ -96,7 +96,7 @@ export default function MindMapNodePanel({ mind, nodes }: MindMapNodePanelProps)<ValuesInputlabelType="text"values={(taggedNode.tags ?? []).map(getTagText)}- placeholder={t("mind-map.add-tag")}+ placeholder={t("mind-map.tags-placeholder")}addButtonText={t("mind-map.add-tag")}removeButtonText={t("mind-map.remove-tag")}onCommit={(texts) => patchSelectedNodes({ tags: applyTagTexts(taggedNode.tags, texts) })}