From e08e1c7e26d8c3c686dfa5b62801bb5afe9ec419 Mon Sep 17 00:00:00 2001 From: Davinder Singh Date: Wed, 7 Dec 2022 10:52:05 +0000 Subject: [PATCH] Merge pull request #10790 from overleaf/ds-history-toggle-bug-fix Fixed the bug with 2/3 way segmented control. GitOrigin-RevId: d2e340c097d60ef47b4cf2817a413cc574a871de --- services/web/frontend/stylesheets/app/editor/history-v2.less | 2 ++ services/web/frontend/stylesheets/app/editor/toolbar.less | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/stylesheets/app/editor/history-v2.less b/services/web/frontend/stylesheets/app/editor/history-v2.less index 7656fb11d3..d59310d9f7 100644 --- a/services/web/frontend/stylesheets/app/editor/history-v2.less +++ b/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 { diff --git a/services/web/frontend/stylesheets/app/editor/toolbar.less b/services/web/frontend/stylesheets/app/editor/toolbar.less index 36ddbaf3ab..884f48562b 100644 --- a/services/web/frontend/stylesheets/app/editor/toolbar.less +++ b/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; }