feat: display total percentage

This commit is contained in:
robin committed 2026-08-04 11:24:38 +02:00
1 parent cfa35036ef
commit fc8142a131
1 file changed
+7 -1
@@ -108,6 +108,7 @@ export default async function EvaluationPage({ params }: PageProps) {
<th style={{ padding: '0.5rem' }}>Kategorie</th>
<th style={{ padding: '0.5rem' }}>Dauer</th>
<th style={{ padding: '0.5rem' }}>Anteil</th>
<th style={{ padding: '0.5rem' }}>Insg. Anteil</th>
</tr>
</thead>
<tbody>
@@ -120,6 +121,9 @@ export default async function EvaluationPage({ params }: PageProps) {
<td style={{ padding: '0.5rem' }}>
{total > 0 ? Math.round((minutes / total) * 1000) / 10 : 0}%
</td>
<td style={{ padding: '0.5rem' }}>
{total > 0 ? Math.round((minutes / (daysToFetch * 24 * 60)) * 1000) / 10 : 0}%
</td>
</tr>
))}
</tbody>
@@ -130,6 +134,9 @@ export default async function EvaluationPage({ params }: PageProps) {
{Math.floor(total / 60)} Std. {Math.round(total % 60)} Min. ({Math.round(total)} Min. gesamt)
</td>
<td style={{ padding: '0.5rem' }}>100%</td>
<td style={{ padding: '0.5rem' }}>
{total > 0 ? Math.round((total / (daysToFetch * 24 * 60)) * 1000) / 10 : 0}%
</td>
</tr>
</tfoot>
</table>
@@ -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',