feat: Enhance Dashboard layout with responsive greeting and metrics display
This commit is contained in:
1 parent
7e8422cbd7
commit
c2b2c71ccd
3 files changed
+90
-13
No files matched your search
@@ -344,4 +344,82 @@ body { font-family: var(--font); background: var(--bg); color: var(--text1); -we
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Dashboard (P3): Begrüßung + Kennzahlen-Zeile */
|
||||
.dashboard-greeting {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.dashboard-greeting__meta {
|
||||
margin-top: 0 !important;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Dashboard layout (Mobile baseline + Desktop im Block oben teilweise) ─ */
|
||||
|
||||
.dashboard-page {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dashboard-greeting {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.dashboard-stat-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.dashboard-stat-card {
|
||||
background: var(--surface);
|
||||
border-radius: 12px;
|
||||
padding: 12px 10px;
|
||||
border: 1px solid var(--border);
|
||||
transition: border-color 0.15s;
|
||||
flex: 1 1 140px;
|
||||
min-width: 80px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.dashboard-summary-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.dashboard-summary-row > .card {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.dashboard-stat-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.dashboard-stat-grid .dashboard-stat-card {
|
||||
flex: unset;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dashboard-summary-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.dashboard-summary-row > .card {
|
||||
flex: unset;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user