Skip to content

Commit

Permalink
Make faction list responsive (#296)
Browse files Browse the repository at this point in the history
Make the faction list turn into two column when the display is greater than 1400px wide.
  • Loading branch information
iamlogand authored Oct 13, 2023
1 parent 412964f commit eae62a2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions frontend/components/FactionList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@
}

.list {
flex-grow: 1;
display: flex;
flex-direction: column;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
padding: 8px;
}

@media (max-width: 1400px) {
.list {
flex-grow: 1;
display: flex;
flex-direction: column;
}
}

.listItem {
display: flex;
}

0 comments on commit eae62a2

Please sign in to comment.