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:
parent
103566f4bf
commit
10a7db54d0
@ -22,11 +22,8 @@
|
||||
@import "~xterm";
|
||||
|
||||
.TerminalWindow {
|
||||
margin: $padding;
|
||||
margin-left: $padding * 2;
|
||||
margin-top: $padding * 2;
|
||||
|
||||
> .xterm {
|
||||
overflow: hidden;
|
||||
}
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
margin: 10px;
|
||||
}
|
||||
@ -45,6 +45,9 @@ export class TerminalWindow extends React.Component<Props> {
|
||||
tabKind: TabKind.TERMINAL,
|
||||
fireImmediately: true,
|
||||
}),
|
||||
|
||||
// refresh terminal available space (cols/rows) when <Dock/> resized
|
||||
dockStore.onResize(() => this.terminal?.fitLazy()),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user