Skip to content

Commit

Permalink
fix: avoid line-breaks before flag and improve responsive lists
Browse files Browse the repository at this point in the history
Closes #143
  • Loading branch information
mathiasschopmans committed Mar 12, 2024
1 parent 858e10b commit b6b4709
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/components/ItemList/ItemList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
}

.flag {
display: inline;
flex: 0 0 auto;
align-self: baseline;
margin-left: 8px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ItemList/ItemList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function ItemList({
})}
href={`/${item.quadrant}/${item.id}`}
>
{item.title}
<span className={styles.title}>{item.title}</span>
<FlagBadge
className={styles.flag}
flag={item.flag}
Expand Down
4 changes: 2 additions & 2 deletions src/components/QuadrantList/QuadrantList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
.link {
}

@media (min-width: 1024px) {
.quadrant {
@media (min-width: 1220px) {
.quadrants {
--cols: 2;
}
}
9 changes: 3 additions & 6 deletions src/components/RingList/RingList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,20 @@
margin-bottom: 20px;
}

.list {
}

@media (min-width: 480px) {
.ring {
.rings {
--cols: 2;
}
}

@media (min-width: 768px) {
.isSmall .ring {
.rings.isSmall {
--cols: 4;
}
}

@media (min-width: 1024px) {
.ring {
.rings {
--cols: 4;
}
}

0 comments on commit b6b4709

Please sign in to comment.