fix faction screen size

This commit is contained in:
Olivier Gagnon 2021-09-21 17:12:16 -04:00
parent 06880c68e1
commit 9b94692942
4 changed files with 4 additions and 5 deletions

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