diff --git a/app/evaluation/[days]/[...ical-link]/page.tsx b/app/evaluation/[days]/[...ical-link]/page.tsx index e717b0c..bd1b18c 100644 --- a/app/evaluation/[days]/[...ical-link]/page.tsx +++ b/app/evaluation/[days]/[...ical-link]/page.tsx @@ -108,6 +108,7 @@ export default async function EvaluationPage({ params }: PageProps) { Kategorie Dauer Anteil + Insg. Anteil @@ -115,11 +116,14 @@ export default async function EvaluationPage({ params }: PageProps) { {category} - {Math.floor(minutes / 60)} Std. {Math.round(minutes % 60)} Min. ({Math.round(minutes)} Min. gesamt) + {Math.floor(minutes / 60)}:{Math.round(minutes % 60)}h (={Math.round(minutes)} min) {total > 0 ? Math.round((minutes / total) * 1000) / 10 : 0}% + + {total > 0 ? Math.round((minutes / (daysToFetch * 24 * 60)) * 1000) / 10 : 0}% + ))} @@ -127,9 +131,12 @@ export default async function EvaluationPage({ params }: PageProps) { Total - {Math.floor(total / 60)} Std. {Math.round(total % 60)} Min. ({Math.round(total)} Min. gesamt) + {Math.floor(total / 60)}:{Math.round(total % 60)}h (={Math.round(total)} min) 100% + + {total > 0 ? Math.round((total / (daysToFetch * 24 * 60)) * 1000) / 10 : 0}% + @@ -190,7 +197,6 @@ export default async function EvaluationPage({ params }: PageProps) { display: 'inline-block', background: '#white', border: '1px solid #e5e7eb', - color: 'black', padding: '2px 8px', borderRadius: '4px', fontSize: '0.85rem',