Skip to content

Commit

Permalink
馃悰: Fix an UI issue with the game menu's message.
Browse files Browse the repository at this point in the history
  • Loading branch information
noobiept committed Aug 19, 2023
1 parent fbf3634 commit d920e6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/features/game-logic/game-logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export class GameLogic {
this.clearMessage();
this.updateGhostPiecePosition();
} else {
this.showMessage("Couldn't rotate left!");
this.showMessage("Rotation blocked");
}
}
return false;
Expand All @@ -428,7 +428,7 @@ export class GameLogic {
this.clearMessage();
this.updateGhostPiecePosition();
} else {
this.showMessage("Couldn't rotate right!");
this.showMessage("Rotation blocked");
}
}
return false;
Expand Down
5 changes: 3 additions & 2 deletions source/features/game-menu/game-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ const Container = styled.div`
flex-direction: column;
justify-content: space-between;
align-items: center;
width: 185px;
width: 200px;
margin: 20px;
`;
const Top = styled.div``;
const Bottom = styled.div``;

const Message = styled.div`
margin-top: 30px;
margin: 20px 0;
height: 2em;
color: red;
`;

Expand Down

0 comments on commit d920e6e

Please sign in to comment.