mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
image scaling improvements
This commit is contained in:
parent
d0efd67d5e
commit
4202af96c8
@ -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%;
|
||||
|
Loading…
x
Reference in New Issue
Block a user