From 2f58b6b3c8b3b2b8add2e72719aafe4debac3cbf Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 7 Apr 2021 21:21:06 +0200 Subject: [PATCH] fix bottom margin/padding styling in tooltip --- src/public/app/services/note_content_renderer.js | 2 +- src/public/stylesheets/style.css | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/public/app/services/note_content_renderer.js b/src/public/app/services/note_content_renderer.js index 23c984d5d..e10f6c2e5 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($("Content of this note cannot be displayed in the book format")); + $renderedContent.append($("

Content of this note cannot be displayed in the book format

")); } $renderedContent.addClass(note.getCssClass()); diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 00424139e..46c3e514d 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;