fix(dashboard): keep standard salary amounts readable

This commit is contained in:
cesnimda
2026-10-21 23:49:54 +02:00
parent 9604589785
commit 2f6227fb4f
8 changed files with 78 additions and 2 deletions
@@ -273,7 +273,7 @@ export default function DashboardView({ mode = "dashboard" }: { mode?: "dashboar
</Box>)}</Stack>
</PageSection> : null,
salary: summaryReady && (overview?.salaryInsights?.length ?? 0) > 0 ? <PageSection title={t("dashboardSalaryInsights")} description={t("dashboardSalaryDefinition")}>
<Box sx={{ display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(3, minmax(0, 1fr))" }, gap: 2 }}>
<Box sx={{ display: "grid", gridTemplateColumns: { xs: "1fr", md: reporting || activeLayout.widgets.find(widget => widget.id === "salary")?.size === "full" ? "repeat(3, minmax(0, 1fr))" : "1fr" }, gap: 2 }}>
{overview!.salaryInsights!.map(item => {
const money = new Intl.NumberFormat(locale, { style: "currency", currency: item.currency, maximumFractionDigits: 0 });
return <Box key={item.currency + item.period} sx={{ p: 2, border: "1px solid", borderColor: "divider", borderRadius: 1 }}>