mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 15:55:23 +02:00
fix kubectl terminal not showing bottom line in some browser (#5444)
This commit is contained in:
parent
80465367a5
commit
0ff9d49c6f
3 changed files with 11 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
angular.module('portainer').service('TerminalWindow', function ($window) {
|
||||
const terminalHeight = 495;
|
||||
this.terminalopen = function () {
|
||||
const terminalHeight = 480;
|
||||
const contentWrapperHeight = $window.innerHeight;
|
||||
const newContentWrapperHeight = contentWrapperHeight - terminalHeight;
|
||||
document.getElementById('content-wrapper').style.height = newContentWrapperHeight + 'px';
|
||||
|
@ -16,4 +16,11 @@ angular.module('portainer').service('TerminalWindow', function ($window) {
|
|||
document.getElementById('content-wrapper').style.overflowY = wrapperCSS.overflowY;
|
||||
document.getElementById('sidebar-wrapper').style.height = wrapperCSS.height;
|
||||
};
|
||||
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';
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue