mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
Add minHeight to editor tabs
This commit is contained in:
parent
372776c94e
commit
a1b3dddf9e
@ -232,7 +232,7 @@ export function Root(props: IProps): React.ReactElement {
|
|||||||
MonacoVim.VimMode.Vim.mapCommand("gT", "action", "prevTabs", {}, { context: "normal" });
|
MonacoVim.VimMode.Vim.mapCommand("gT", "action", "prevTabs", {}, { context: "normal" });
|
||||||
editor.focus();
|
editor.focus();
|
||||||
});
|
});
|
||||||
} catch {}
|
} catch { }
|
||||||
} else if (!options.vim) {
|
} else if (!options.vim) {
|
||||||
// Whem vim mode is disabled
|
// Whem vim mode is disabled
|
||||||
vimEditor?.dispose();
|
vimEditor?.dispose();
|
||||||
@ -478,7 +478,7 @@ export function Root(props: IProps): React.ReactElement {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
infLoop(newCode);
|
infLoop(newCode);
|
||||||
} catch (err) {}
|
} catch (err) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveScript(scriptToSave: OpenScript): void {
|
function saveScript(scriptToSave: OpenScript): void {
|
||||||
@ -829,15 +829,15 @@ export function Root(props: IProps): React.ReactElement {
|
|||||||
maxHeight: "38.5px",
|
maxHeight: "38.5px",
|
||||||
...(currentScript?.fileName === openScripts[index].fileName
|
...(currentScript?.fileName === openScripts[index].fileName
|
||||||
? {
|
? {
|
||||||
background: Settings.theme.button,
|
background: Settings.theme.button,
|
||||||
borderColor: Settings.theme.button,
|
borderColor: Settings.theme.button,
|
||||||
color: Settings.theme.primary,
|
color: Settings.theme.primary,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
background: Settings.theme.backgroundsecondary,
|
background: Settings.theme.backgroundsecondary,
|
||||||
borderColor: Settings.theme.backgroundsecondary,
|
borderColor: Settings.theme.backgroundsecondary,
|
||||||
color: Settings.theme.secondary,
|
color: Settings.theme.secondary,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const scriptTabText = `${hostname}:~/${fileName} ${dirty(index)}`;
|
const scriptTabText = `${hostname}:~/${fileName} ${dirty(index)}`;
|
||||||
@ -870,18 +870,19 @@ export function Root(props: IProps): React.ReactElement {
|
|||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
maxWidth: `${tabTextWidth}px`,
|
maxWidth: `${tabTextWidth}px`,
|
||||||
|
minHeight: '38.5px',
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
...(currentScript?.fileName === openScripts[index].fileName
|
...(currentScript?.fileName === openScripts[index].fileName
|
||||||
? {
|
? {
|
||||||
background: Settings.theme.button,
|
background: Settings.theme.button,
|
||||||
borderColor: Settings.theme.button,
|
borderColor: Settings.theme.button,
|
||||||
color: Settings.theme.primary,
|
color: Settings.theme.primary,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
background: Settings.theme.backgroundsecondary,
|
background: Settings.theme.backgroundsecondary,
|
||||||
borderColor: Settings.theme.backgroundsecondary,
|
borderColor: Settings.theme.backgroundsecondary,
|
||||||
color: Settings.theme.secondary,
|
color: Settings.theme.secondary,
|
||||||
}),
|
}),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span style={{ overflow: "hidden", direction: "rtl", textOverflow: "ellipsis" }}>
|
<span style={{ overflow: "hidden", direction: "rtl", textOverflow: "ellipsis" }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user