fix: 3 bugs — beauty icon color, appointments on dashboard, blog image edit
1. Beauty category icon: was pink (#C2185B), now uses site primary gold
(var(--gold) / var(--gold-pale)) to match brand color
2. Dashboard now shows health requests:
- Two new stat cards: total patients + pending requests (clickable)
- 'آخرین درخواستها' mini-table showing last 6 requests
- Sidebar badge updates from dashboard load too
- loadDashboard() now fetches /api/patients + /api/health-requests
3. Blog image edit fix:
- applyCrop() now captures inputId/previewId BEFORE closeCropper()
to prevent any potential race condition when replacing images
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -179,7 +179,7 @@
|
||||
.health-cat-card { background:var(--white); border-radius:24px; padding:2.2rem; border:1px solid var(--border); display:flex; flex-direction:column; gap:1rem; }
|
||||
.health-cat-icon { width:60px; height:60px; border-radius:18px; display:flex; align-items:center; justify-content:center; }
|
||||
.health-cat-icon svg { width:28px; height:28px; }
|
||||
.health-cat-icon.beauty { background:#FCE4EC; color:#C2185B; }
|
||||
.health-cat-icon.beauty { background:var(--gold-pale); color:var(--gold); }
|
||||
.health-cat-icon.health { background:#E3F2FD; color:#1565C0; }
|
||||
.health-cat-card h3 { font-size:1.15rem; font-weight:700; color:var(--dark); }
|
||||
.health-cat-card p { font-size:.88rem; color:var(--mid); line-height:1.8; }
|
||||
|
||||
Reference in New Issue
Block a user