Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nick/timer fix #60

Merged
merged 4 commits into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.history
.lh
.vscode
dist
coverage
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,3 +327,7 @@
### Refactoring with Stryker

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/59/files)

### Fix timer

[Pull request](https://github.com/nickovchinnikov/minesweeper/pull/60/files)
24 changes: 12 additions & 12 deletions src/components/Game/__snapshots__/GameLayout.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ exports[`Top renders correctly 1`] = `
-ms-user-select: none;
user-select: none;
cursor: pointer;
width: 1.8vw;
height: 1.8vw;
width: 1.8vh;
height: 1.8vh;
color: transparent;
background-color: #d1d1d1;
border: 0.6vh solid transparent;
Expand Down Expand Up @@ -210,8 +210,8 @@ exports[`Top renders correctly 1`] = `
-ms-user-select: none;
user-select: none;
cursor: pointer;
width: 1.8vw;
height: 1.8vw;
width: 1.8vh;
height: 1.8vh;
color: transparent;
background-color: #d1d1d1;
border: 0.6vh solid transparent;
Expand Down Expand Up @@ -249,8 +249,8 @@ exports[`Top renders correctly 1`] = `
-ms-user-select: none;
user-select: none;
cursor: pointer;
width: 1.8vw;
height: 1.8vw;
width: 1.8vh;
height: 1.8vh;
color: transparent;
background-color: #d1d1d1;
border: 0.6vh solid transparent;
Expand All @@ -273,8 +273,8 @@ exports[`Top renders correctly 1`] = `

.emotion-26 {
border-radius: 50%;
width: 1vw;
height: 1vw;
width: 1vh;
height: 1vh;
background-color: #333;
}

Expand All @@ -296,8 +296,8 @@ exports[`Top renders correctly 1`] = `
-ms-user-select: none;
user-select: none;
cursor: pointer;
width: 1.8vw;
height: 1.8vw;
width: 1.8vh;
height: 1.8vh;
color: transparent;
background-color: #d1d1d1;
border: 0.6vh solid transparent;
Expand Down Expand Up @@ -335,8 +335,8 @@ exports[`Top renders correctly 1`] = `
-ms-user-select: none;
user-select: none;
cursor: pointer;
width: 1.8vw;
height: 1.8vw;
width: 1.8vh;
height: 1.8vh;
color: transparent;
background-color: #d1d1d1;
border: 0.6vh solid transparent;
Expand Down
16 changes: 8 additions & 8 deletions src/components/Grid/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ export const ClosedFrame = styled.div<ClosedFrameProps>`
justify-content: center;
user-select: none;
cursor: pointer;
width: 1.8vw;
height: 1.8vw;
width: 1.8vh;
height: 1.8vh;
color: transparent;
background-color: #d1d1d1;
border: 0.6vh solid transparent;
Expand Down Expand Up @@ -171,8 +171,8 @@ const RevealedFrame = styled(ClosedFrame)`

const Bomb = styled.div`
border-radius: 50%;
width: 1vw;
height: 1vw;
width: 1vh;
height: 1vh;
background-color: #333;
`;

Expand All @@ -184,11 +184,11 @@ const Flag = styled.div`
width: 0px;
height: 0px;
color: ${transparent};
border-top: 0.5vw solid transparent;
border-bottom: 0.5vw solid transparent;
border-left: 0.5vw solid #ec433c;
border-top: 0.5vh solid transparent;
border-bottom: 0.5vh solid transparent;
border-left: 0.5vh solid #ec433c;
`;

const WeakFlag = styled(Flag)`
border-left: 0.5vw solid #f19996;
border-left: 0.5vh solid #f19996;
`;