mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-22 02:41:23 +01:00
more minor fixups, sizing, background colors, etc.
This commit is contained in:
parent
b96d97855b
commit
067767c70e
@ -371,10 +371,10 @@ class LineCmd extends React.Component<
|
||||
|
||||
getTerminalRendererHeight(cmd: Cmd): number {
|
||||
let { screen, line, width, renderMode } = this.props;
|
||||
let height = 36 + 6; // height of zero height terminal
|
||||
let height = 45 + 24; // height of zero height terminal
|
||||
let usedRows = screen.getUsedRows(lineutil.getRendererContext(line), line, cmd, width);
|
||||
if (usedRows > 0) {
|
||||
height = 36 + 6 + 11 + termHeightFromRows(usedRows, GlobalModel.termFontSize.get());
|
||||
height = 48 + 24 + termHeightFromRows(usedRows, GlobalModel.termFontSize.get());
|
||||
}
|
||||
return height;
|
||||
}
|
||||
|
@ -89,8 +89,8 @@
|
||||
color: @term-white;
|
||||
|
||||
code {
|
||||
background-color: @term-black;
|
||||
color: #4e9a06;
|
||||
color: @prompt-green;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&.should-fade {
|
||||
|
@ -152,6 +152,9 @@ class TerminalRenderer extends React.Component<
|
||||
let usedRows = screen.getUsedRows(lineutil.getRendererContext(line), line, cmd, width);
|
||||
// TODO: replace the +2 with some calculation based on termFontSize. the +2 is for descenders, which get cut off without this.
|
||||
let termHeight = termHeightFromRows(usedRows, GlobalModel.termFontSize.get()) + 2;
|
||||
if (usedRows === 0) {
|
||||
termHeight = 0;
|
||||
}
|
||||
let termLoaded = this.termLoaded.get();
|
||||
return (
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user