fix: avoid line-breaks before flag and improve responsive lists

Closes #143
This commit is contained in:
Mathias Schopmans
2024-03-12 16:51:53 +01:00
parent 858e10b77e
commit b6b4709ed5
5 changed files with 9 additions and 11 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "aoe_technology_radar",
"version": "4.0.0",
"version": "4.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "aoe_technology_radar",
"version": "4.0.0",
"version": "4.0.1",
"hasInstallScript": true,
"bin": {
"techradar": "bin/techradar.js"

View File

@@ -11,6 +11,7 @@
}
.flag {
display: inline;
flex: 0 0 auto;
align-self: baseline;
margin-left: 8px;

View File

@@ -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}

View File

@@ -31,8 +31,8 @@
.link {
}
@media (min-width: 1024px) {
.quadrant {
@media (min-width: 1220px) {
.quadrants {
--cols: 2;
}
}

View File

@@ -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;
}
}