File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,13 @@ var CodeOceanEditor = {
237237 } ,
238238
239239 resizeSidebars : function ( ) {
240- $ ( '#content-left-sidebar' ) . height ( this . calculateEditorHeight ( '#content-left-sidebar' , false ) ) ;
240+ let editorHeightLeftSidebar = this . calculateEditorHeight ( '#content-left-sidebar' , false ) ;
241+ $ ( '#content-left-sidebar' ) . height ( function ( ) {
242+ if ( $ ( '#resizerHorizontal' ) . css ( 'display' ) === 'none' )
243+ return 'auto' ;
244+ else
245+ return editorHeightLeftSidebar ;
246+ } ) ;
241247 $ ( '#content-right-sidebar' ) . height ( this . calculateEditorHeight ( '#content-right-sidebar' , false ) ) ;
242248 } ,
243249
Original file line number Diff line number Diff line change 2525
2626#panel-left {
2727 position : relative ;
28- max-height : 85vh ;
29- overflow-y : scroll ;
28+ }
29+
30+ // Bootstrap breakpoint "large". See https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints
31+ @media (min-width : 992px ) {
32+
33+ #panel-left {
34+ position : relative ;
35+ max-height : 85vh ;
36+ overflow-y : scroll ;
37+ }
3038}
3139
3240#panel-right {
@@ -83,7 +91,7 @@ html[data-bs-theme="light"] {
8391}
8492
8593#content-left-sidebar , #content-right-sidebar {
86- min -height : 250 px ;
94+ max -height : 500 px ;
8795}
8896
8997.frame {
You can’t perform that action at this time.
0 commit comments