mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
fix faction screen size
This commit is contained in:
parent
06880c68e1
commit
9b94692942
@ -196,7 +196,6 @@ export class Roulette extends Game<IProps, IState> {
|
||||
if (playerWin && Math.random() > 0.9) {
|
||||
playerWin = false;
|
||||
while (this.state.strategy.match(n)) {
|
||||
console.log("er)");
|
||||
n = (n + 1) % 36;
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ type IProps = {
|
||||
const useStyles = makeStyles((theme: Theme) =>
|
||||
createStyles({
|
||||
noformat: {
|
||||
whiteSpace: "pre",
|
||||
whiteSpace: "pre-wrap",
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
@ -300,7 +300,7 @@ export function GameRoot({ player, engine, terminal }: IProps): React.ReactEleme
|
||||
) : (
|
||||
<Box display="flex" flexDirection="row" width="100%">
|
||||
<SidebarRoot player={player} router={Router} page={page} />
|
||||
<Box className={classes.root} flexGrow={1} display="block" width="100%" px={1} height="100vh">
|
||||
<Box className={classes.root} flexGrow={1} display="block" px={1} height="100vh">
|
||||
{page === Page.Terminal ? (
|
||||
<TerminalRoot terminal={terminal} router={Router} player={player} />
|
||||
) : page === Page.Sleeves ? (
|
||||
|
@ -32,11 +32,11 @@ export function WorkInProgressRoot(): React.ReactElement {
|
||||
const faction = Factions[player.currentWorkFactionName];
|
||||
if (player.workType == CONSTANTS.WorkTypeFaction) {
|
||||
function cancel(): void {
|
||||
router.toFaction();
|
||||
router.toFaction(faction);
|
||||
player.finishFactionWork(true);
|
||||
}
|
||||
function unfocus(): void {
|
||||
router.toFaction();
|
||||
router.toFaction(faction);
|
||||
player.stopFocusing();
|
||||
}
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user