Skip to content

Commit 5b03537

Browse files
authored
Merge pull request #79 from Chessweeper/android
Fix CSS issues on mobile
2 parents 99149c1 + 2bbf7ce commit 5b03537

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Cell.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Cell = ({ id }: CellProps): JSX.Element => {
1717
let value: string | number | JSX.Element = "";
1818

1919
let className = "cell";
20-
if (G.size > 10) {
20+
if (G.size > 7) {
2121
className += " small";
2222
}
2323

test/components/Cell.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ describe("Cell tests", () => {
6565
expect(cell).not.toHaveClass("white");
6666
});
6767

68-
it("should render with small class when size > 10", () => {
69-
boardContext.G.size = 11;
68+
it("should render with small class when size > 7", () => {
69+
boardContext.G.size = 8;
7070

7171
const { container } = renderWithProviders(
7272
<BoardContext.Provider value={boardContext}>

0 commit comments

Comments
 (0)