Przeglądaj źródła

Merge pull request #14055 from overleaf/td-review-panel-editor-horizontal-scroll

React review panel: prevent horizontal scrollbar

GitOrigin-RevId: b79b03e6a69b26bda58d8585adc14b351b2e6f86
Tim Down 3 lat temu
rodzic
commit
e7479c789f

+ 7 - 2
services/web/frontend/stylesheets/app/editor/review-panel.less

@@ -1213,9 +1213,7 @@ button when (@is-overleaf-light = true) {
 .ol-cm-review-panel {
   position: relative;
   z-index: 6;
-  display: block;
   flex-shrink: 0;
-  flex-direction: column;
 
   background-color: @rp-bg-blue;
   border-left: solid 0 @rp-border-grey;
@@ -1263,6 +1261,13 @@ button when (@is-overleaf-light = true) {
   }
 
   &.rp-current-file-container {
+    display: none;
+
+    .rp-size-mini &,
+    .rp-size-expanded & {
+      display: block;
+    }
+
     .review-panel-toolbar {
       position: sticky;
       top: 0;