hunk.code_window:     document.getElementById('content-wrapper').style.height = wrapperCSS.height;
       document.getElementById('content-wrapper').style.overflowY = wrapperCSS.overflowY;
       document.getElementById('sidebar-wrapper').style.height = wrapperCSS.height;
     };
   });
hunk.labels: keep keep keep add keep
hunk.after_edit:   this.terminalresize = function () {
       const contentWrapperHeight = $window.innerHeight;
       const newContentWrapperHeight = contentWrapperHeight - terminalHeight;
       document.getElementById('content-wrapper').style.height = newContentWrapperHeight + 'px';
       document.getElementById('content-wrapper').style.overflowY = 'auto';
       document.getElementById('sidebar-wrapper').style.height = newContentWrapperHeight + 'px';
     };
  
hunk.file_path: app/portainer/services/terminal-window.js
hunk.type: add
file: angular.module('portainer').service('TerminalWindow', function ($window) {
    this.terminalopen = function () {
      const terminalHeight = 480;
      const contentWrapperHeight = $window.innerHeight;
      const newContentWrapperHeight = contentWrapperHeight - terminalHeight;
      document.getElementById('content-wrapper').style.height = newContentWrapperHeight + 'px';
      document.getElementById('content-wrapper').style.overflowY = 'auto';
      document.getElementById('sidebar-wrapper').style.height = newContentWrapperHeight + 'px';
    };
    this.terminalclose = function () {
      const wrapperCSS = {
        height: '100%',
        overflowY: 'initial',
      };
      document.getElementById('content-wrapper').style.height = wrapperCSS.height;
      document.getElementById('content-wrapper').style.overflowY = wrapperCSS.overflowY;
      document.getElementById('sidebar-wrapper').style.height = wrapperCSS.height;
    };
  });
  