mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
UI: Prevent text from overflowing when script's args are too long in Active Scripts page (#2324)
This commit is contained in:
@@ -77,7 +77,9 @@ export function RecentScriptAccordion(props: IProps): React.ReactElement {
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
<TableCell className={classes.noborder} colSpan={2}>
|
||||
<Typography>└ Args: {arrayToString(recentScript.runningScript.args)}</Typography>
|
||||
<Typography sx={{ overflowWrap: "anywhere" }}>
|
||||
└ Args: {arrayToString(recentScript.runningScript.args)}
|
||||
</Typography>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
|
||||
@@ -68,7 +68,7 @@ export function WorkerScriptAccordion(props: IProps): React.ReactElement {
|
||||
<ListItemButton onClick={() => setOpen((old) => !old)} component={Paper}>
|
||||
<ListItemText
|
||||
primary={
|
||||
<Typography style={{ wordWrap: "break-word" }}>
|
||||
<Typography sx={{ overflowWrap: "break-word" }}>
|
||||
└ {props.workerScript.name} {JSON.stringify(props.workerScript.args)}
|
||||
</Typography>
|
||||
}
|
||||
@@ -89,7 +89,9 @@ export function WorkerScriptAccordion(props: IProps): React.ReactElement {
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
<TableCell className={classes.noborder} colSpan={2}>
|
||||
<Typography>└ Args: {arrayToString(props.workerScript.args)}</Typography>
|
||||
<Typography sx={{ overflowWrap: "anywhere" }}>
|
||||
└ Args: {arrayToString(props.workerScript.args)}
|
||||
</Typography>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow>
|
||||
|
||||
Reference in New Issue
Block a user