TERMINAL: Fix inconsistent / janky scrolling behavior (#1063)

This commit is contained in:
Snarling
2024-01-31 19:32:42 -05:00
committed by GitHub
parent cf45981cd2
commit 0ded11af53
2 changed files with 41 additions and 54 deletions
+2 -9
View File
@@ -12,9 +12,6 @@ import { longestCommonStart } from "../../utils/StringHelperFunctions";
const useStyles = makeStyles((theme: Theme) =>
createStyles({
textfield: {
margin: theme.spacing(0),
},
input: {
backgroundColor: theme.colors.backgroundprimary,
},
@@ -24,14 +21,10 @@ const useStyles = makeStyles((theme: Theme) =>
preformatted: {
margin: theme.spacing(0),
},
list: {
padding: theme.spacing(0),
height: "100%",
},
absolute: {
margin: theme.spacing(0),
position: "absolute",
bottom: "5px",
bottom: "12px",
opacity: "0.75",
maxWidth: "100%",
whiteSpace: "pre",
@@ -419,7 +412,7 @@ export function TerminalInput(): React.ReactElement {
disabled={Terminal.action !== null}
autoComplete="off"
value={value}
classes={{ root: classes.textfield }}
classes={{ root: classes.preformatted }}
onChange={handleValueChange}
inputRef={terminalInput}
InputProps={{