mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
7c186082ef
commit
07361a8f68
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue