Просмотр исходного кода

Merge branch 'dev/5.0.x' into rc/5.0.x

yohei0125 4 лет назад
Родитель
Сommit
032a101a08

+ 1 - 1
packages/app/src/components/Page/RevisionBody.jsx

@@ -42,7 +42,7 @@ export default class RevisionBody extends React.PureComponent {
     //   So, before MathJax is initialized, execute renderMathJaxWithDebounce again.
     //   Avoiding initialization of MathJax of draw.io solves the problem.
     //   refs: https://github.com/jgraph/drawio/pull/831
-    if (MathJax != null) {
+    if (MathJax != null && this.element != null) {
       MathJax.typesetPromise([this.element]);
     }
     else {

+ 1 - 1
packages/app/src/styles/_sidebar.scss

@@ -56,7 +56,7 @@
     .hitarea {
       @extend .rounded-pill;
 
-      $size-hitarea: 80px;
+      $size-hitarea: 55px;
 
       position: absolute;
       top: ($width - $size-hitarea) / 2;