mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
image scaling improvements
This commit is contained in:
@@ -48,6 +48,8 @@ const TPL = `
|
|||||||
|
|
||||||
.note-book-card.expanded .note-book-content {
|
.note-book-card.expanded .note-book-content {
|
||||||
display: block;
|
display: block;
|
||||||
|
min-height: 0;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-book-title {
|
.note-book-title {
|
||||||
@@ -66,6 +68,12 @@ const TPL = `
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.note-book-content.type-image img {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
.note-book-card.type-image .note-book-content img, .note-book-card.type-text .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%;
|
||||||
|
|||||||
Reference in New Issue
Block a user