diff --git a/src/main/resources/static/css/promptprocesspanel.css b/src/main/resources/static/css/promptprocesspanel.css index 3fbf0f40b..e3c901ba5 100644 --- a/src/main/resources/static/css/promptprocesspanel.css +++ b/src/main/resources/static/css/promptprocesspanel.css @@ -75,7 +75,7 @@ width: 40%; height: 100%; top: 52px; - margin-top:50px; + margin-top: 0; padding:0; transition: transform 0.3s 0.3s; border: 1px dashed lightgray; diff --git a/src/main/resources/static/js/gw.editor.js b/src/main/resources/static/js/gw.editor.js index a8b5e793b..f95e10b94 100644 --- a/src/main/resources/static/js/gw.editor.js +++ b/src/main/resources/static/js/gw.editor.js @@ -6,9 +6,42 @@ GW.editor = { isfullscreen: false, + switchSidePanelFullScreen: function(){ + + var sidepanel = $('.cd-panel__container') //.cd-panel__container + if (!sidepanel.hasClass('fullscreen')) { + // this.beforeFullscreen = { height: sidepanel.height(), width: sidepanel.width() } + sidepanel.addClass('fullscreen'); + sidepanel.height('100vh'); + sidepanel.width('100vw'); + sidepanel.css('top', '0'); + $('#prompt-panel-main').height('calc(100% - 55px)') + $('#prompt-panel-main-process-info-code').height('100%') + $('#prompt-panel-main-process-info-history').height('100%') + this.isfullscreen = true; + }else { + sidepanel.removeClass('fullscreen'); + // sidepanel.height(this.beforeFullscreen.height); + // sidepanel.width(this.beforeFullscreen.width); + sidepanel.css('top', '52px'); + // subtabCodeDiv.height('calc(100% - 150px)'); + // subtabHistoryDiv.height('calc(100% - 150px)'); + sidepanel.height('100%') + sidepanel.width('40%') + $('#prompt-panel-main').height('calc(100% - 105px)') + $('#prompt-panel-main-process-info-code').height('100%') + $('#prompt-panel-main-process-info-history').height('100%') + // editor.refresh(); + this.isfullscreen = false; + } + + }, + switchFullScreen: function(){ - this.switchFullScreenUtil('#editor-history-tab-panel', '#main-process-info-code', '#main-process-info-history') + this.switchFullScreenUtil('#editor-history-tab-panel', + '#main-process-info-code', + '#main-process-info-history') }, @@ -22,7 +55,6 @@ GW.editor = { editorDiv.addClass('fullscreen'); editorDiv.height('100vh'); editorDiv.width('100vw'); - // editor.refresh(); subtabCodeDiv.height('calc(100% - 40px)'); subtabHistoryDiv.height('calc(100% - 40px)'); this.isfullscreen = true; @@ -33,7 +65,6 @@ GW.editor = { editorDiv.width(this.beforeFullscreen.width); subtabCodeDiv.height('calc(100% - 150px)'); subtabHistoryDiv.height('calc(100% - 150px)'); - // editor.refresh(); this.isfullscreen = false; } diff --git a/src/main/resources/static/js/gw.process.js b/src/main/resources/static/js/gw.process.js index b764c9ac2..6f75ec79e 100644 --- a/src/main/resources/static/js/gw.process.js +++ b/src/main/resources/static/js/gw.process.js @@ -1412,13 +1412,23 @@ GW.process = { - + - - - + `');" > + + + + +
diff --git a/src/main/resources/static/js/gw.process.sidepanel.js b/src/main/resources/static/js/gw.process.sidepanel.js index f3b8bf0de..069a6c112 100644 --- a/src/main/resources/static/js/gw.process.sidepanel.js +++ b/src/main/resources/static/js/gw.process.sidepanel.js @@ -290,23 +290,34 @@ GW.process.sidepanel = {
- - - - - - - - - - - - + + + + + + + +
@@ -461,7 +472,9 @@ GW.process.sidepanel = { switchFullScreen: function(){ - GW.editor.switchFullScreenUtil('#prompt-panel-editor-history-tab-panel', '#prompt-panel-main-process-info-code', '#prompt-panel-main-process-info-history') + GW.editor.switchFullScreenUtil('#prompt-panel-editor-history-tab-panel', + '#prompt-panel-main-process-info-code', + '#prompt-panel-main-process-info-history') }, diff --git a/src/main/resources/templates/geoweaver.html b/src/main/resources/templates/geoweaver.html index ebb7bb2d8..8ddad49fd 100644 --- a/src/main/resources/templates/geoweaver.html +++ b/src/main/resources/templates/geoweaver.html @@ -657,16 +657,16 @@

Processing your import

-
+
-
+