Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
d20362e7
Commit
d20362e7
authored
Jun 02, 2025
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak stat card
parent
1594c1ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
StatCard.tsx
web/src/components/StatisticsView/StatCard.tsx
+2
-2
StatisticsView.tsx
web/src/components/StatisticsView/StatisticsView.tsx
+5
-5
No files found.
web/src/components/StatisticsView/StatCard.tsx
View file @
d20362e7
...
...
@@ -14,9 +14,9 @@ export const StatCard = ({ icon, label, count, onClick, tooltip, className }: St
>
<
div
className=
"w-auto flex justify-start items-center mr-1"
>
{
icon
}
<
span
className=
"block text-
xs
opacity-80"
>
{
label
}
</
span
>
<
span
className=
"block text-
sm
opacity-80"
>
{
label
}
</
span
>
</
div
>
<
span
className=
"text-
xs
truncate opacity-80"
>
{
count
}
</
span
>
<
span
className=
"text-
sm
truncate opacity-80"
>
{
count
}
</
span
>
</
div
>
);
...
...
web/src/components/StatisticsView/StatisticsView.tsx
View file @
d20362e7
...
...
@@ -49,7 +49,7 @@ const StatisticsView = observer(() => {
<
div
className=
"pt-1 w-full flex flex-row justify-start items-center gap-1 flex-wrap"
>
{
isRootPath
&&
hasPinnedMemos
&&
(
<
StatCard
icon=
{
<
BookmarkIcon
className=
"w-
3
h-auto mr-1 opacity-70"
/>
}
icon=
{
<
BookmarkIcon
className=
"w-
4
h-auto mr-1 opacity-70"
/>
}
label=
{
t
(
"common.pinned"
)
}
count=
{
userStore
.
state
.
currentUserStats
!
.
pinnedMemos
.
length
}
onClick=
{
()
=>
handleFilterClick
(
"pinned"
)
}
...
...
@@ -57,7 +57,7 @@ const StatisticsView = observer(() => {
)
}
<
StatCard
icon=
{
<
LinkIcon
className=
"w-
3
h-auto mr-1 opacity-70"
/>
}
icon=
{
<
LinkIcon
className=
"w-
4
h-auto mr-1 opacity-70"
/>
}
label=
{
t
(
"memo.links"
)
}
count=
{
memoTypeStats
.
linkCount
}
onClick=
{
()
=>
handleFilterClick
(
"property.hasLink"
)
}
...
...
@@ -66,9 +66,9 @@ const StatisticsView = observer(() => {
<
StatCard
icon=
{
memoTypeStats
.
undoCount
>
0
?
(
<
ListTodoIcon
className=
"w-
3
h-auto mr-1 opacity-70"
/>
<
ListTodoIcon
className=
"w-
4
h-auto mr-1 opacity-70"
/>
)
:
(
<
CheckCircleIcon
className=
"w-
3
h-auto mr-1 opacity-70"
/>
<
CheckCircleIcon
className=
"w-
4
h-auto mr-1 opacity-70"
/>
)
}
label=
{
t
(
"memo.to-do"
)
}
...
...
@@ -88,7 +88,7 @@ const StatisticsView = observer(() => {
/>
<
StatCard
icon=
{
<
Code2Icon
className=
"w-
3
h-auto mr-1 opacity-70"
/>
}
icon=
{
<
Code2Icon
className=
"w-
4
h-auto mr-1 opacity-70"
/>
}
label=
{
t
(
"memo.code"
)
}
count=
{
memoTypeStats
.
codeCount
}
onClick=
{
()
=>
handleFilterClick
(
"property.hasCode"
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment