mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
adapt merged changes from master
This commit is contained in:
parent
36eac6badd
commit
fdc99bb6f9
@ -68,9 +68,7 @@ async function getRenderedContent(note) {
|
|||||||
$rendered = $("<em>Content of this note cannot be displayed in the book format</em>");
|
$rendered = $("<em>Content of this note cannot be displayed in the book format</em>");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (note.cssClass) {
|
$rendered.addClass(await note.getCssClass());
|
||||||
$rendered.addClass(note.cssClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
renderedContent: $rendered,
|
renderedContent: $rendered,
|
||||||
|
@ -78,7 +78,7 @@ const TPL = `
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-book-card.type-image .note-book-content img {
|
.note-book-card.type-image .note-book-content img, .note-book-card.type-text .note-book-content img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user