Minor UI fix in History display
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import { Calendar, Clock, TrendingUp, Scale, Pencil, Trash2, X, Save, ArrowRight, ArrowUp, Timer, Activity, Dumbbell, Percent } from 'lucide-react';
|
||||
import { Calendar, Clock, TrendingUp, Gauge, Pencil, Trash2, X, Save, ArrowRight, ArrowUp, Timer, Activity, Dumbbell, Percent } from 'lucide-react';
|
||||
import { WorkoutSession, ExerciseType, WorkoutSet, Language } from '../types';
|
||||
import { t } from '../services/i18n';
|
||||
|
||||
@@ -136,11 +136,13 @@ const History: React.FC<HistoryProps> = ({ sessions, onUpdateSession, onDeleteSe
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="mt-2 text-xs text-on-surface-variant">
|
||||
{t('sets_count', lang)}: <span className="text-on-surface font-medium">{session.sets.length}</span>
|
||||
<div className="mt-2 text-xs text-on-surface-variant flex items-center">
|
||||
<span className="inline-flex items-center">
|
||||
{t('sets_count', lang)}: <span className="text-on-surface font-medium ml-1">{session.sets.length}</span>
|
||||
</span>
|
||||
{totalWork > 0 && (
|
||||
<span className="ml-4 inline-flex items-center gap-1">
|
||||
<Scale size={12} />
|
||||
<Gauge size={12} />
|
||||
{(totalWork / 1000).toFixed(1)}t
|
||||
</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user