chore: tweak tooltips

This commit is contained in:
Steven 2024-06-05 08:51:04 +08:00
parent 54539aa047
commit 7375b87967

View file

@ -122,13 +122,15 @@ const UserStatisticsView = (props: Props) => {
</div> </div>
{memoStats.incompleteTasks > 0 && ( {memoStats.incompleteTasks > 0 && (
<> <>
<Tooltip title={"Incomplete tasks"} placement="top" arrow> <Tooltip title={"Done"} placement="top" arrow>
<span className="text-sm truncate">{memoStats.taskList - memoStats.incompleteTasks}</span> <span className="text-sm truncate">{memoStats.taskList - memoStats.incompleteTasks}</span>
</Tooltip> </Tooltip>
<span className="text-sm font-mono opacity-50">/</span> <span className="text-sm font-mono opacity-50">/</span>
</> </>
)} )}
<span className="text-sm truncate">{memoStats.taskList}</span> <Tooltip title={"Total"} placement="top" arrow>
<span className="text-sm truncate">{memoStats.taskList}</span>
</Tooltip>
</div> </div>
<div <div
className={clsx( className={clsx(