1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix: refresh terminal's available space (cols/rows) on dock's resize

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2021-10-09 22:21:36 +03:00
parent 103566f4bf
commit 10a7db54d0
2 changed files with 7 additions and 7 deletions

View File

@ -22,11 +22,8 @@
@import "~xterm"; @import "~xterm";
.TerminalWindow { .TerminalWindow {
margin: $padding; flex: 1;
margin-left: $padding * 2; height: 100%;
margin-top: $padding * 2;
> .xterm {
overflow: hidden; overflow: hidden;
} margin: 10px;
} }

View File

@ -45,6 +45,9 @@ export class TerminalWindow extends React.Component<Props> {
tabKind: TabKind.TERMINAL, tabKind: TabKind.TERMINAL,
fireImmediately: true, fireImmediately: true,
}), }),
// refresh terminal available space (cols/rows) when <Dock/> resized
dockStore.onResize(() => this.terminal?.fitLazy()),
]); ]);
} }