Skip to content

Commit d20362e

Browse files
committed
chore: tweak stat card
1 parent 1594c1c commit d20362e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

web/src/components/StatisticsView/StatCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export const StatCard = ({ icon, label, count, onClick, tooltip, className }: St
1414
>
1515
<div className="w-auto flex justify-start items-center mr-1">
1616
{icon}
17-
<span className="block text-xs opacity-80">{label}</span>
17+
<span className="block text-sm opacity-80">{label}</span>
1818
</div>
19-
<span className="text-xs truncate opacity-80">{count}</span>
19+
<span className="text-sm truncate opacity-80">{count}</span>
2020
</div>
2121
);
2222

web/src/components/StatisticsView/StatisticsView.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ const StatisticsView = observer(() => {
4949
<div className="pt-1 w-full flex flex-row justify-start items-center gap-1 flex-wrap">
5050
{isRootPath && hasPinnedMemos && (
5151
<StatCard
52-
icon={<BookmarkIcon className="w-3 h-auto mr-1 opacity-70" />}
52+
icon={<BookmarkIcon className="w-4 h-auto mr-1 opacity-70" />}
5353
label={t("common.pinned")}
5454
count={userStore.state.currentUserStats!.pinnedMemos.length}
5555
onClick={() => handleFilterClick("pinned")}
5656
/>
5757
)}
5858

5959
<StatCard
60-
icon={<LinkIcon className="w-3 h-auto mr-1 opacity-70" />}
60+
icon={<LinkIcon className="w-4 h-auto mr-1 opacity-70" />}
6161
label={t("memo.links")}
6262
count={memoTypeStats.linkCount}
6363
onClick={() => handleFilterClick("property.hasLink")}
@@ -66,9 +66,9 @@ const StatisticsView = observer(() => {
6666
<StatCard
6767
icon={
6868
memoTypeStats.undoCount > 0 ? (
69-
<ListTodoIcon className="w-3 h-auto mr-1 opacity-70" />
69+
<ListTodoIcon className="w-4 h-auto mr-1 opacity-70" />
7070
) : (
71-
<CheckCircleIcon className="w-3 h-auto mr-1 opacity-70" />
71+
<CheckCircleIcon className="w-4 h-auto mr-1 opacity-70" />
7272
)
7373
}
7474
label={t("memo.to-do")}
@@ -88,7 +88,7 @@ const StatisticsView = observer(() => {
8888
/>
8989

9090
<StatCard
91-
icon={<Code2Icon className="w-3 h-auto mr-1 opacity-70" />}
91+
icon={<Code2Icon className="w-4 h-auto mr-1 opacity-70" />}
9292
label={t("memo.code")}
9393
count={memoTypeStats.codeCount}
9494
onClick={() => handleFilterClick("property.hasCode")}

0 commit comments

Comments
 (0)