Merge pull request #5749 from overleaf/ab-ide-panels-minsize

Set a minimum width for editor and PDF panels

GitOrigin-RevId: cc63e56df6f37c74995c00d1855dc3a0feccc32a
This commit is contained in:
Alf Eaton 2021-11-16 10:28:00 +00:00 committed by Copybot
parent 7c186082ef
commit 07361a8f68

View file

@ -44,6 +44,7 @@ export default App.directive('layout', ($parse, $compile, ide) => ({
spacingClosed = 7 spacingClosed = 7
} }
const minEditorPanelsWidth = 270
const options = { const options = {
spacing_open: spacingOpen, spacing_open: spacingOpen,
spacing_closed: spacingClosed, spacing_closed: spacingClosed,
@ -69,6 +70,8 @@ export default App.directive('layout', ($parse, $compile, ide) => ({
size: scope.$eval(attrs.initialSizeEast), size: scope.$eval(attrs.initialSizeEast),
initClosed: scope.$eval(attrs.initClosedWest), initClosed: scope.$eval(attrs.initClosedWest),
}, },
center__minWidth: minEditorPanelsWidth,
east__minSize: minEditorPanelsWidth,
} }
// Restore previously recorded state // Restore previously recorded state