Skip to content

Build your personal knowledge base with Trilium Notes

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.css
index 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.tsx
index 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, ntxI
const [ 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());