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", "name": "aoe_technology_radar",
"version": "4.0.0", "version": "4.0.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "aoe_technology_radar", "name": "aoe_technology_radar",
"version": "4.0.0", "version": "4.0.1",
"hasInstallScript": true, "hasInstallScript": true,
"bin": { "bin": {
"techradar": "bin/techradar.js" "techradar": "bin/techradar.js"

View File

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

View File

@@ -38,7 +38,7 @@ export function ItemList({
})} })}
href={`/${item.quadrant}/${item.id}`} href={`/${item.quadrant}/${item.id}`}
> >
{item.title} <span className={styles.title}>{item.title}</span>
<FlagBadge <FlagBadge
className={styles.flag} className={styles.flag}
flag={item.flag} flag={item.flag}

View File

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

View File

@@ -19,23 +19,20 @@
margin-bottom: 20px; margin-bottom: 20px;
} }
.list {
}
@media (min-width: 480px) { @media (min-width: 480px) {
.ring { .rings {
--cols: 2; --cols: 2;
} }
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.isSmall .ring { .rings.isSmall {
--cols: 4; --cols: 4;
} }
} }
@media (min-width: 1024px) { @media (min-width: 1024px) {
.ring { .rings {
--cols: 4; --cols: 4;
} }
} }