mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
images in include note should have max 100% width, #922
This commit is contained in:
parent
9a1a76605a
commit
8ccc48c25d
@ -20,7 +20,9 @@ async function getRenderedContent(note) {
|
|||||||
$rendered = $("<pre>").text(fullNote.content);
|
$rendered = $("<pre>").text(fullNote.content);
|
||||||
}
|
}
|
||||||
else if (type === 'image') {
|
else if (type === 'image') {
|
||||||
$rendered = $("<img>").attr("src", `api/images/${note.noteId}/${note.title}`);
|
$rendered = $("<img>")
|
||||||
|
.attr("src", `api/images/${note.noteId}/${note.title}`)
|
||||||
|
.css("max-width", "100%");
|
||||||
}
|
}
|
||||||
else if (type === 'file') {
|
else if (type === 'file') {
|
||||||
function getFileUrl() {
|
function getFileUrl() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user