mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix MathJax editor sometimes not properly sized / getting cut off (#2467)
* Fix MathJax editor sometimes not properly sized Also fix an issue where when 'Reduce motion' is enabled, a popover appears momentarily out of position and then shifts to the correct position. * Fix MathJax editor sometimes getting cut off * Change max-width of MathJax editor
This commit is contained in:
parent
6fe9728b80
commit
b5fa47e307
3 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
}
|
||||
|
||||
&.hidden {
|
||||
width: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
overflow: hidden;
|
||||
|
||||
:global(.CodeMirror) {
|
||||
max-width: 28rem;
|
||||
max-width: 100ch;
|
||||
min-width: 14rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
|
|
@ -210,6 +210,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
reference={activeImage}
|
||||
offset={20}
|
||||
keepOnKeyup
|
||||
portalTarget={document.body}
|
||||
let:position={positionFloating}
|
||||
on:close={resetHandle}
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue