Explorar el Código

Merge pull request #10790 from overleaf/ds-history-toggle-bug-fix

Fixed the bug with 2/3 way segmented control.

GitOrigin-RevId: d2e340c097d60ef47b4cf2817a413cc574a871de
Davinder Singh hace 3 años
padre
commit
60dc53e685

+ 2 - 0
services/web/frontend/stylesheets/app/editor/history-v2.less

@@ -61,6 +61,8 @@
   flex: 0 0 @changesListWidth;
   padding: 0 10px;
   border-left: 1px solid @editor-border-color;
+  display: flex;
+  justify-content: center;
 }
 
 .history-entries {

+ 1 - 2
services/web/frontend/stylesheets/app/editor/toolbar.less

@@ -237,12 +237,11 @@
 }
 
 .toggle-switch {
-  display: flex;
+  display: inline-flex;
   align-items: center;
   height: @toolbar-btn-height;
   margin-right: 5px;
   border-radius: @btn-border-radius-base;
-  overflow: hidden;
   background-color: @toggle-switch-bg;
   padding: 2px;
 }