fix bottom margin/padding styling in tooltip

This commit is contained in:
zadam 2021-04-07 21:21:06 +02:00
parent e7909d25c6
commit 2f58b6b3c8
2 changed files with 6 additions and 2 deletions

View file

@ -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());

View file

@ -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;