Skip to content

Commit 8db79c9

Browse files
committed
feat: set auto-fit for grid elements
1 parent 70afd30 commit 8db79c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Todo.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
}
99

1010
.todoGridContainer {
11-
grid-template-columns: repeat(3, minmax(50px, 1fr));
11+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
1212
grid-gap: 1rem;
1313
display: grid;
1414
padding-top: 3rem;
15+
justify-content: center;
1516
}
1617

1718
.headerContainer {

0 commit comments

Comments
 (0)