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:
Hikaru Y 2023-04-12 08:43:57 +09:00 committed by GitHub
parent 6fe9728b80
commit b5fa47e307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View file

@ -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;
} }

View file

@ -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;
} }

View file

@ -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}
> >