mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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 {
|
&.hidden {
|
||||||
width: 0;
|
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
:global(.CodeMirror) {
|
:global(.CodeMirror) {
|
||||||
max-width: 28rem;
|
max-width: 100ch;
|
||||||
min-width: 14rem;
|
min-width: 14rem;
|
||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,6 +210,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
reference={activeImage}
|
reference={activeImage}
|
||||||
offset={20}
|
offset={20}
|
||||||
keepOnKeyup
|
keepOnKeyup
|
||||||
|
portalTarget={document.body}
|
||||||
let:position={positionFloating}
|
let:position={positionFloating}
|
||||||
on:close={resetHandle}
|
on:close={resetHandle}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue