Dashboard-Cards: horizontales Layout mit Bild links, Body rechts

This commit is contained in:
Meleki committed 2026-03-01 11:51:35 +01:00
1 parent 2efe12858a
commit 294145a04e
2 files changed
+10 -7

No files matched your search

+10 -4
View File
@@ -16,8 +16,8 @@
.card-grid { .card-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(24em, 1fr));
gap: var(--page-spacing); gap: var(--box-spacing);
} }
.card { .card {
@@ -25,9 +25,10 @@
background: var(--f3-bg); background: var(--f3-bg);
border: var(--border-width) solid var(--f3-border); border: var(--border-width) solid var(--f3-border);
display: flex; display: flex;
flex-direction: column;
overflow: visible; overflow: visible;
border-radius: var(--border-radius); border-radius: var(--border-radius);
padding: var(--box-padding);
gap: var(--box-spacing);
} }
.card.clickable { .card.clickable {
@@ -44,6 +45,10 @@
background: var(--f2-bg); background: var(--f2-bg);
overflow: hidden; overflow: hidden;
border-radius: var(--border-radius) var(--border-radius) 0 0; border-radius: var(--border-radius) var(--border-radius) 0 0;
flex: 0 0 8em;
height: 8em;
align-self: center;
border-radius: var(--border-radius);
} }
.card-image img { .card-image img {
@@ -53,9 +58,10 @@
} }
.card-body { .card-body {
padding: var(--box-padding);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden;
flex: 3;
} }
.card-title-row { .card-title-row {
-3
View File
@@ -13,7 +13,4 @@
width: 100px; width: 100px;
min-width: 100px; min-width: 100px;
} }
.card-grid {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
} }