Skip to content

Commit

Permalink
fix card size
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiViv committed Oct 9, 2024
1 parent fddac5c commit c534f5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/CourseList.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
.course-list {
display: grid;
grid-template-columns: repeat(auto-fill, 14rem);
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
gap: 0.1rem; /* Space between the cards */
margin-top: 10px;
}

.card {
display: flex;
flex-direction: column;
height: 100%;
height: 230px;
width: 200px;
padding: 0; /* Remove internal padding if necessary */
box-sizing: border-box;
border: 1px solid #ddd; /* Set a border to make unselected cards visible */
Expand Down

0 comments on commit c534f5d

Please sign in to comment.