chore: fix typo (#3570)
This commit is contained in:
parent
5a50958f28
commit
4d882d9b58
|
@ -115,7 +115,7 @@ export function ThemeDialog({
|
||||||
1,
|
1,
|
||||||
);
|
);
|
||||||
|
|
||||||
const DAILOG_PADDING = 2;
|
const DIALOG_PADDING = 2;
|
||||||
const selectThemeHeight = themeItems.length + 1;
|
const selectThemeHeight = themeItems.length + 1;
|
||||||
const SCOPE_SELECTION_HEIGHT = 4; // Height for the scope selection section + margin.
|
const SCOPE_SELECTION_HEIGHT = 4; // Height for the scope selection section + margin.
|
||||||
const SPACE_BETWEEN_THEME_SELECTION_AND_APPLY_TO = 1;
|
const SPACE_BETWEEN_THEME_SELECTION_AND_APPLY_TO = 1;
|
||||||
|
@ -125,7 +125,7 @@ export function ThemeDialog({
|
||||||
availableTerminalHeight -= TAB_TO_SELECT_HEIGHT;
|
availableTerminalHeight -= TAB_TO_SELECT_HEIGHT;
|
||||||
|
|
||||||
let totalLeftHandSideHeight =
|
let totalLeftHandSideHeight =
|
||||||
DAILOG_PADDING +
|
DIALOG_PADDING +
|
||||||
selectThemeHeight +
|
selectThemeHeight +
|
||||||
SCOPE_SELECTION_HEIGHT +
|
SCOPE_SELECTION_HEIGHT +
|
||||||
SPACE_BETWEEN_THEME_SELECTION_AND_APPLY_TO;
|
SPACE_BETWEEN_THEME_SELECTION_AND_APPLY_TO;
|
||||||
|
@ -136,7 +136,7 @@ export function ThemeDialog({
|
||||||
// Remove content from the LHS that can be omitted if it exceeds the available height.
|
// Remove content from the LHS that can be omitted if it exceeds the available height.
|
||||||
if (totalLeftHandSideHeight > availableTerminalHeight) {
|
if (totalLeftHandSideHeight > availableTerminalHeight) {
|
||||||
includePadding = false;
|
includePadding = false;
|
||||||
totalLeftHandSideHeight -= DAILOG_PADDING;
|
totalLeftHandSideHeight -= DIALOG_PADDING;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (totalLeftHandSideHeight > availableTerminalHeight) {
|
if (totalLeftHandSideHeight > availableTerminalHeight) {
|
||||||
|
|
Loading…
Reference in New Issue