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
style/attribute editor: reduce tooltip spacing
Adorian Doran63d055d9705e
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.cssindex d1b0adfbee..3e0ddd0170 100644--- a/apps/client/src/stylesheets/theme-next/base.css+++ b/apps/client/src/stylesheets/theme-next/base.css@@ -585,6 +585,15 @@ li.dropdown-item a.dropdown-item-button:focus-visible {color: var(--toast-text-color);}+/*+ * TOOLTIPS+ */++.tooltip:not(.note-tooltip) .tooltip-inner p {+ padding: 0;+ margin: 0;+}+/** NOTE TOOLTIPS*/diff --git a/apps/client/src/widgets/ribbon/components/AttributeEditor.tsx b/apps/client/src/widgets/ribbon/components/AttributeEditor.tsxindex 1e5bb77500..753bef15a0 100644--- a/apps/client/src/widgets/ribbon/components/AttributeEditor.tsx+++ b/apps/client/src/widgets/ribbon/components/AttributeEditor.tsx@@ -27,9 +27,7 @@ type AttributeCommandNames = FilteredCommandNames<CommandData>;const HELP_TEXT = `<p>${t("attribute_editor.help_text_body1")}</p>-<p>${t("attribute_editor.help_text_body2")}</p>-<p>${t("attribute_editor.help_text_body3")}</p>`;const mentionSetup: MentionFeed[] = [@@ -108,11 +106,12 @@ export default function AttributeEditor({ api, note, componentId, notePath, ntxIconst [ locale ] = useTriliumOption("locale");const { showTooltip, hideTooltip } = useTooltip(wrapperRef, {- trigger: "focus",+ trigger: "click",html: true,title: HELP_TEXT,placement: "bottom",- offset: "0,30"+ offset: "0,30",+});const [ attributeDetailWidgetEl, attributeDetailWidget ] = useLegacyWidget(() => new AttributeDetailWidget());