mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-13 03:03:54 +01:00
fix terminal wrap
This commit is contained in:
parent
fd55155fea
commit
be9b595590
@ -33,14 +33,12 @@ export function cat(
|
|||||||
showLiterature(file);
|
showLiterature(file);
|
||||||
return;
|
return;
|
||||||
} else if (filename.endsWith(".msg")) {
|
} else if (filename.endsWith(".msg")) {
|
||||||
const file = server.messages[i];
|
const file = server.messages[i] as Message;
|
||||||
if (typeof file === "string") throw new Error(".msg file should not be a .lit");
|
if (file.filename !== filename) continue;
|
||||||
if (file.filename === filename) {
|
|
||||||
showMessage(file);
|
showMessage(file);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else if (filename.endsWith(".txt")) {
|
} else if (filename.endsWith(".txt")) {
|
||||||
const txt = terminal.getTextFile(player, filename);
|
const txt = terminal.getTextFile(player, filename);
|
||||||
if (txt != null) {
|
if (txt != null) {
|
||||||
|
@ -31,6 +31,7 @@ const useStyles = makeStyles((theme: Theme) =>
|
|||||||
},
|
},
|
||||||
preformatted: {
|
preformatted: {
|
||||||
whiteSpace: "pre-wrap",
|
whiteSpace: "pre-wrap",
|
||||||
|
overflowWrap: "anywhere",
|
||||||
margin: theme.spacing(0),
|
margin: theme.spacing(0),
|
||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
|
Loading…
Reference in New Issue
Block a user