image scaling improvements

This commit is contained in:
zadam 2020-10-25 00:12:07 +02:00
parent d0efd67d5e
commit 4202af96c8

View File

@ -48,6 +48,8 @@ const TPL = `
.note-book-card.expanded .note-book-content {
display: block;
min-height: 0;
height: 100%;
}
.note-book-title {
@ -66,6 +68,12 @@ const TPL = `
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 {
max-width: 100%;
max-height: 100%;