Skip to content

Commit

Permalink
Disable clicking on moving cards (#131)
Browse files Browse the repository at this point in the history
Also, make landscape layout a bit more usable on mobile.
  • Loading branch information
eltoder authored Feb 19, 2025
1 parent cac5e6b commit 4406a99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ function Game({
style={{
position: "absolute",
zIndex: style.opacity.to((x) => (x === 1 ? "auto" : 1)),
pointerEvents: style.opacity.to((x) =>
x === 1 ? "auto" : "none"
),
...style,
}}
>
Expand Down
8 changes: 7 additions & 1 deletion src/pages/GamePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ const useStyles = makeStyles((theme) => ({
},
mainColumn: {
display: "flex",
alignItems: "center",
alignItems: "top",
},
snackbar: {
[theme.breakpoints.down("sm")]: {
bottom: 6,
},
},
doneOverlay: {
position: "absolute",
Expand Down Expand Up @@ -354,6 +359,7 @@ function GamePage({ match }) {
vertical: "bottom",
horizontal: "center",
}}
classes={{ root: classes.snackbar }}
open={snack.open}
autoHideDuration={2000}
onClose={handleClose}
Expand Down

0 comments on commit 4406a99

Please sign in to comment.