Skip to content

Build your personal knowledge base with Trilium Notes

fix bottom margin/padding styling in tooltip

zadam2f58b6b3c8b3
diff --git a/src/public/app/services/note_content_renderer.js b/src/public/app/services/note_content_renderer.js
index 23c984d5df..e10f6c2e5f 100644
--- a/src/public/app/services/note_content_renderer.js
+++ b/src/public/app/services/note_content_renderer.js
@@ -85,7 +85,7 @@ async function getRenderedContent(note, options = {}) {
);
}
else {
- $renderedContent.append($("<em>Content of this note cannot be displayed in the book format</em>"));
+ $renderedContent.append($("<p><em>Content of this note cannot be displayed in the book format</em></p>"));
}
$renderedContent.addClass(note.getCssClass());
diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css
index 00424139e3..46c3e514d6 100644
--- a/src/public/stylesheets/style.css
+++ b/src/public/stylesheets/style.css
@@ -405,7 +405,7 @@ table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th
}
.tooltip-inner {
- padding: 15px 15px 0 15px;
+ padding: 15px;
background-color: var(--tooltip-background-color) !important;
border: 1px solid var(--main-border-color);
border-radius: 5px;
@@ -415,6 +415,10 @@ table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th
box-shadow: 10px 10px 93px -25px #aaaaaa;
}
+.tooltip-inner p:last-of-type {
+ margin-bottom: 0;
+}
+
.rendered-note-attributes {
color: var(--muted-text-color);
margin-bottom: 7px;