From 07361a8f6837b552becd210f58404eb40cd15cd5 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Tue, 16 Nov 2021 10:28:00 +0000 Subject: [PATCH] Merge pull request #5749 from overleaf/ab-ide-panels-minsize Set a minimum width for editor and PDF panels GitOrigin-RevId: cc63e56df6f37c74995c00d1855dc3a0feccc32a --- services/web/frontend/js/ide/directives/layout.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/frontend/js/ide/directives/layout.js b/services/web/frontend/js/ide/directives/layout.js index 9a66321de5..2906eede99 100644 --- a/services/web/frontend/js/ide/directives/layout.js +++ b/services/web/frontend/js/ide/directives/layout.js @@ -44,6 +44,7 @@ export default App.directive('layout', ($parse, $compile, ide) => ({ spacingClosed = 7 } + const minEditorPanelsWidth = 270 const options = { spacing_open: spacingOpen, spacing_closed: spacingClosed, @@ -69,6 +70,8 @@ export default App.directive('layout', ($parse, $compile, ide) => ({ size: scope.$eval(attrs.initialSizeEast), initClosed: scope.$eval(attrs.initClosedWest), }, + center__minWidth: minEditorPanelsWidth, + east__minSize: minEditorPanelsWidth, } // Restore previously recorded state