Skip to content

Commit c8f2166

Browse files
authored
Merge pull request #3 from behitek/bugfix/minesweeper-wide-screen-cell-error
fix wide screen error
2 parents 3eed445 + 3877756 commit c8f2166

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/pages/minesweeper/styles.module.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@
112112

113113
.grid {
114114
display: grid;
115-
gap: 0.5px;
115+
gap: 1px;
116116
background: #34495e;
117-
padding: 0.5px;
117+
padding: 1px;
118118
border-radius: 4px;
119119
width: fit-content;
120120
margin: 0 auto;
121+
grid-template-columns: repeat(auto-fill, 30px);
121122
overflow-x: auto;
122123
max-width: 100%;
123124
-webkit-overflow-scrolling: touch;
@@ -135,6 +136,7 @@
135136
font-size: 1rem;
136137
cursor: pointer;
137138
transition: all 0.2s ease;
139+
flex-shrink: 0;
138140
}
139141

140142
.cell:hover {

0 commit comments

Comments
 (0)