Exempt MathJax images from image shrinking

https://forums.ankiweb.net/t/anki-2-1-55-beta-mathjax-preview/23529/18
This commit is contained in:
Damien Elmes 2022-12-04 20:03:27 +10:00
parent 2860ee1424
commit 1ca05b00ec
2 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
src="data:image/svg+xml,{encoded}" src="data:image/svg+xml,{encoded}"
class:block class:block
class:empty class:empty
class="mathjax"
style:--vertical-center="{verticalCenter}px" style:--vertical-center="{verticalCenter}px"
style:--font-size="{fontSize}px" style:--font-size="{fontSize}px"
alt="Mathjax" alt="Mathjax"

View File

@ -3,7 +3,7 @@ Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
--> -->
<style lang="scss"> <style lang="scss">
:global(img) { :global(img:not(.mathjax)) {
max-width: var(--editor-default-max-width); max-width: var(--editor-default-max-width);
max-height: var(--editor-default-max-height); max-height: var(--editor-default-max-height);