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