Merge pull request #1028 from hgiesel/imgmaxwidth

Add max-width: 100% to editable.scss
This commit is contained in:
Damien Elmes 2021-02-17 15:54:01 +10:00 committed by GitHub
commit c63c927301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ anki-editable {
display: block; display: block;
overflow-wrap: break-word; overflow-wrap: break-word;
overflow: auto; overflow: auto;
padding: 5px; padding: 6px;
&:empty::after { &:empty::after {
content: "\a"; content: "\a";
@ -10,10 +10,14 @@ anki-editable {
} }
} }
img.drawing { img {
max-width: 100%;
&.drawing {
zoom: 50%; zoom: 50%;
.nightMode & { .nightMode & {
filter: unquote("invert() hue-rotate(180deg)"); filter: unquote("invert() hue-rotate(180deg)");
} }
} }
}