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

Merge pull request #3393 from weseek/fix/5074-5075-adjust-scroll-bar

Fix/5074 5075 adjust scroll bar
Yuki Takei 5 лет назад
Родитель
Сommit
2ddf7178b3
2 измененных файлов с 7 добавлено и 2 удалено
  1. 2 0
      CHANGES.md
  2. 5 2
      src/client/styles/scss/_on-edit.scss

+ 2 - 0
CHANGES.md

@@ -2,6 +2,8 @@
 
 ## v4.2.8-RC
 
+* Fix: Preview scrollbar doesn't sync to editor
+    * Introduced by v4.2.6
 * Improvement: Add contributors
 * Fix: Pass app title value through the XSS filter
 * Fix: Fixed not being able to update ses settings

+ 5 - 2
src/client/styles/scss/_on-edit.scss

@@ -232,12 +232,15 @@ body.on-edit {
     }
 
     .page-editor-preview-container {
-      overflow-y: scroll;
     }
 
     .page-editor-preview-body {
-      max-width: 980px;
       padding: 18px 15px 0;
+      overflow-y: scroll;
+    }
+
+    .wiki {
+      max-width: 980px;
       margin: 0 auto;
     }