centering icons in note book vertically

This commit is contained in:
zadam 2023-06-22 23:34:05 +02:00
parent 176784834f
commit cb2b97635a
4 changed files with 10 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -67,7 +67,10 @@ async function getRenderedContent(entity, options = {}) {
else if (entity instanceof FNote) {
$renderedContent.append(
$("<div>")
.css("text-align", "center")
.css("display", "flex")
.css("justify-content", "space-around")
.css("align-items", "center")
.css("height", "100%")
.css("font-size", "500%")
.append($("<span>").addClass(entity.getIcon()))
);

View File

@ -66,6 +66,10 @@ const TPL = `
padding-top: 10px;
}
.note-book-content .rendered-content {
height: 100%;
}
.note-book-header {
border-bottom: 1px solid var(--main-border-color);
margin-bottom: 0;