UI: Prevent text from overflowing when script's args are too long in Active Scripts page (#2324)

This commit is contained in:
catloversg
2025-09-28 13:25:52 +07:00
committed by GitHub
parent e1352e67b1
commit bb8552fa81
2 changed files with 7 additions and 3 deletions

View File

@@ -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>

View File

@@ -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>