refactor(ui): modernize proposal wizard, dashboard cards and daily control calendar

Frontend-only application of prod_v2 (7bc6845, a29eafc). Dev
docker-compose.yml change (b11cb36) and backups churn excluded.
This commit is contained in:
MMD
2026-09-13 18:07:27 +03:30
parent a542e4177e
commit 2573f1e583
8 changed files with 549 additions and 383 deletions
+11 -5
View File
@@ -26,15 +26,21 @@ export function TopicGrid({ topics, selectedTopic, onSelect, showCounts = false,
<button
type="button"
key={t.key}
className={cn("topic-card", selected && "selected")}
className={cn("topic-card flex flex-col items-center justify-center p-4", selected && "selected")}
onClick={() => onSelect(t.name)}
>
<img src={t.icon} alt="" />
<div className="t-name">{t.name}</div>
{showCounts && <div className="t-count">{faNum(count)} تأمین‌کننده</div>}
{/* استفاده از استایل اینلاین برای تضمین تغییر سایز و دور زدن CSSهای قبلی */}
<img
src={t.icon}
alt=""
style={{ width: '130px', height: '80px', objectFit: 'contain' }}
className="mb-2"
/>
<div className="t-name text-[13px] font-semibold">{t.name}</div>
{showCounts && <div className="t-count text-[11px] text-muted">{faNum(count)} تأمین‌کننده</div>}
</button>
);
})}
</div>
);
}
}