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
4d4325eb
Commit
4d4325eb
authored
Oct 22, 2025
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update component styles for consistency
parent
b4341dd1
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
30 additions
and
30 deletions
+30
-30
MemoCommentMessage.tsx
web/src/components/Inbox/MemoCommentMessage.tsx
+1
-1
MemoAttachmentListView.tsx
web/src/components/MemoAttachmentListView.tsx
+1
-1
Highlight.tsx
web/src/components/MemoContent/Highlight.tsx
+1
-1
MemoDetailSidebarDrawer.tsx
.../components/MemoDetailSidebar/MemoDetailSidebarDrawer.tsx
+1
-1
AttachmentListView.tsx
web/src/components/MemoEditor/AttachmentListView.tsx
+1
-1
RelationListView.tsx
web/src/components/MemoEditor/RelationListView.tsx
+1
-1
index.tsx
web/src/components/MemoEditor/index.tsx
+1
-1
MemoRelationListView.tsx
web/src/components/MemoRelationListView.tsx
+1
-1
ReactionView.tsx
web/src/components/ReactionView.tsx
+1
-1
default-dark.css
web/src/themes/default-dark.css
+1
-1
default.css
web/src/themes/default.css
+1
-1
paper.css
web/src/themes/paper.css
+19
-19
No files found.
web/src/components/Inbox/MemoCommentMessage.tsx
View file @
4d4325eb
...
@@ -129,7 +129,7 @@ const MemoCommentMessage = observer(({ inbox }: Props) => {
...
@@ -129,7 +129,7 @@ const MemoCommentMessage = observer(({ inbox }: Props) => {
"shrink-0 mt-2 p-2 rounded-full border"
,
"shrink-0 mt-2 p-2 rounded-full border"
,
inbox
.
status
===
Inbox_Status
.
UNREAD
inbox
.
status
===
Inbox_Status
.
UNREAD
?
"border-primary text-primary bg-primary/10"
?
"border-primary text-primary bg-primary/10"
:
"border-muted-foreground text-muted-foreground bg-
popover
"
,
:
"border-muted-foreground text-muted-foreground bg-
muted
"
,
)
}
)
}
>
>
<
TooltipProvider
>
<
TooltipProvider
>
...
...
web/src/components/MemoAttachmentListView.tsx
View file @
4d4325eb
...
@@ -58,7 +58,7 @@ const MemoAttachmentListView = ({ attachments = [] }: { attachments: Attachment[
...
@@ -58,7 +58,7 @@ const MemoAttachmentListView = ({ attachments = [] }: { attachments: Attachment[
return
(
return
(
<
video
<
video
className=
{
cn
(
className=
{
cn
(
"cursor-pointer h-full w-auto rounded-lg border border-border/60 object-contain bg-
popover
transition-colors"
,
"cursor-pointer h-full w-auto rounded-lg border border-border/60 object-contain bg-
muted
transition-colors"
,
className
,
className
,
)
}
)
}
preload=
"metadata"
preload=
"metadata"
...
...
web/src/components/MemoContent/Highlight.tsx
View file @
4d4325eb
...
@@ -3,7 +3,7 @@ interface Props {
...
@@ -3,7 +3,7 @@ interface Props {
}
}
const
Highlight
:
React
.
FC
<
Props
>
=
({
content
}:
Props
)
=>
{
const
Highlight
:
React
.
FC
<
Props
>
=
({
content
}:
Props
)
=>
{
return
<
mark
className=
"bg-
yellow-200 tex
t-foreground px-1 rounded"
>
{
content
}
</
mark
>;
return
<
mark
className=
"bg-
accent text-accen
t-foreground px-1 rounded"
>
{
content
}
</
mark
>;
};
};
export
default
Highlight
;
export
default
Highlight
;
web/src/components/MemoDetailSidebar/MemoDetailSidebarDrawer.tsx
View file @
4d4325eb
...
@@ -26,7 +26,7 @@ const MemoDetailSidebarDrawer = ({ memo, parentPage }: Props) => {
...
@@ -26,7 +26,7 @@ const MemoDetailSidebarDrawer = ({ memo, parentPage }: Props) => {
<
GanttChartIcon
className=
"w-5 h-auto text-muted-foreground"
/>
<
GanttChartIcon
className=
"w-5 h-auto text-muted-foreground"
/>
</
Button
>
</
Button
>
</
SheetTrigger
>
</
SheetTrigger
>
<
SheetContent
side=
"right"
className=
"w-full sm:w-80 px-4 bg-
popover
"
>
<
SheetContent
side=
"right"
className=
"w-full sm:w-80 px-4 bg-
background
"
>
<
MemoDetailSidebar
className=
"py-4"
memo=
{
memo
}
parentPage=
{
parentPage
}
/>
<
MemoDetailSidebar
className=
"py-4"
memo=
{
memo
}
parentPage=
{
parentPage
}
/>
</
SheetContent
>
</
SheetContent
>
</
Sheet
>
</
Sheet
>
...
...
web/src/components/MemoEditor/AttachmentListView.tsx
View file @
4d4325eb
...
@@ -38,7 +38,7 @@ const AttachmentListView = (props: Props) => {
...
@@ -38,7 +38,7 @@ const AttachmentListView = (props: Props) => {
return
(
return
(
<
div
<
div
key=
{
attachment
.
name
}
key=
{
attachment
.
name
}
className=
"max-w-full w-auto flex flex-row justify-start items-center flex-nowrap gap-x-1 bg-
popover
px-2 py-1 rounded hover:shadow-sm text-muted-foreground"
className=
"max-w-full w-auto flex flex-row justify-start items-center flex-nowrap gap-x-1 bg-
muted
px-2 py-1 rounded hover:shadow-sm text-muted-foreground"
>
>
<
SortableItem
id=
{
attachment
.
name
}
className=
"flex flex-row justify-start items-center gap-x-1"
>
<
SortableItem
id=
{
attachment
.
name
}
className=
"flex flex-row justify-start items-center gap-x-1"
>
<
AttachmentIcon
attachment=
{
attachment
}
className=
"w-4! h-4! opacity-100!"
/>
<
AttachmentIcon
attachment=
{
attachment
}
className=
"w-4! h-4! opacity-100!"
/>
...
...
web/src/components/MemoEditor/RelationListView.tsx
View file @
4d4325eb
...
@@ -37,7 +37,7 @@ const RelationListView = observer((props: Props) => {
...
@@ -37,7 +37,7 @@ const RelationListView = observer((props: Props) => {
return
(
return
(
<
div
<
div
key=
{
memo
.
name
}
key=
{
memo
.
name
}
className=
"w-auto max-w-xs overflow-hidden flex flex-row justify-start items-center bg-
popover
hover:opacity-80 rounded-md text-sm p-1 px-2 text-muted-foreground cursor-pointer hover:line-through"
className=
"w-auto max-w-xs overflow-hidden flex flex-row justify-start items-center bg-
muted
hover:opacity-80 rounded-md text-sm p-1 px-2 text-muted-foreground cursor-pointer hover:line-through"
onClick=
{
()
=>
handleDeleteRelation
(
memo
)
}
onClick=
{
()
=>
handleDeleteRelation
(
memo
)
}
>
>
<
LinkIcon
className=
"w-4 h-auto shrink-0 opacity-80"
/>
<
LinkIcon
className=
"w-4 h-auto shrink-0 opacity-80"
/>
...
...
web/src/components/MemoEditor/index.tsx
View file @
4d4325eb
...
@@ -483,7 +483,7 @@ const MemoEditor = observer((props: Props) => {
...
@@ -483,7 +483,7 @@ const MemoEditor = observer((props: Props) => {
>
>
<
div
<
div
className=
{
cn
(
className=
{
cn
(
"group relative w-full flex flex-col justify-start items-start bg-
backgroun
d px-4 pt-3 pb-2 rounded-lg border"
,
"group relative w-full flex flex-col justify-start items-start bg-
car
d px-4 pt-3 pb-2 rounded-lg border"
,
state
.
isDraggingFile
?
"border-dashed border-muted-foreground cursor-copy"
:
"border-border cursor-auto"
,
state
.
isDraggingFile
?
"border-dashed border-muted-foreground cursor-copy"
:
"border-border cursor-auto"
,
className
,
className
,
)
}
)
}
...
...
web/src/components/MemoRelationListView.tsx
View file @
4d4325eb
...
@@ -30,7 +30,7 @@ const MemoRelationListView = (props: Props) => {
...
@@ -30,7 +30,7 @@ const MemoRelationListView = (props: Props) => {
}
}
return
(
return
(
<
div
className=
"relative flex flex-col justify-start items-start w-full px-2 pt-2 pb-1.5 bg-
popover
rounded-lg border border-border"
>
<
div
className=
"relative flex flex-col justify-start items-start w-full px-2 pt-2 pb-1.5 bg-
muted/50
rounded-lg border border-border"
>
<
div
className=
"w-full flex flex-row justify-start items-center mb-1 gap-3 opacity-60"
>
<
div
className=
"w-full flex flex-row justify-start items-center mb-1 gap-3 opacity-60"
>
{
referencingMemoList
.
length
>
0
&&
(
{
referencingMemoList
.
length
>
0
&&
(
<
button
<
button
...
...
web/src/components/ReactionView.tsx
View file @
4d4325eb
...
@@ -73,7 +73,7 @@ const ReactionView = observer((props: Props) => {
...
@@ -73,7 +73,7 @@ const ReactionView = observer((props: Props) => {
"h-7 border px-2 py-0.5 rounded-full flex flex-row justify-center items-center gap-1"
,
"h-7 border px-2 py-0.5 rounded-full flex flex-row justify-center items-center gap-1"
,
"text-sm text-muted-foreground"
,
"text-sm text-muted-foreground"
,
currentUser
&&
!
readonly
&&
"cursor-pointer"
,
currentUser
&&
!
readonly
&&
"cursor-pointer"
,
hasReaction
&&
"bg-
popover
border-border"
,
hasReaction
&&
"bg-
accent
border-border"
,
)
}
)
}
onClick=
{
handleReactionClick
}
onClick=
{
handleReactionClick
}
>
>
...
...
web/src/themes/default-dark.css
View file @
4d4325eb
:root
{
:root
{
--background
:
oklch
(
0.25
0.003
270
);
--background
:
oklch
(
0.25
0.003
270
);
--foreground
:
oklch
(
0.75
0.003
270
);
--foreground
:
oklch
(
0.75
0.003
270
);
--card
:
oklch
(
0.2
5
0.003
270
);
--card
:
oklch
(
0.2
8
0.003
270
);
--card-foreground
:
oklch
(
0.75
0.003
270
);
--card-foreground
:
oklch
(
0.75
0.003
270
);
--popover
:
oklch
(
0.28
0.003
270
);
--popover
:
oklch
(
0.28
0.003
270
);
--popover-foreground
:
oklch
(
0.72
0.003
270
);
--popover-foreground
:
oklch
(
0.72
0.003
270
);
...
...
web/src/themes/default.css
View file @
4d4325eb
:root
{
:root
{
--background
:
oklch
(
0.9818
0.0054
95.0986
);
--background
:
oklch
(
0.9818
0.0054
95.0986
);
--foreground
:
oklch
(
0.2438
0.0269
95.7226
);
--foreground
:
oklch
(
0.2438
0.0269
95.7226
);
--card
:
oklch
(
0.9818
0.0054
95.0986
);
--card
:
oklch
(
1
0
0
);
--card-foreground
:
oklch
(
0.1908
0.002
106.5859
);
--card-foreground
:
oklch
(
0.1908
0.002
106.5859
);
--popover
:
oklch
(
1
0
0
);
--popover
:
oklch
(
1
0
0
);
--popover-foreground
:
oklch
(
0.2671
0.0196
98.939
);
--popover-foreground
:
oklch
(
0.2671
0.0196
98.939
);
...
...
web/src/themes/paper.css
View file @
4d4325eb
:root
{
:root
{
--background
:
oklch
(
0.9
765
0.0086
85.8732
);
--background
:
oklch
(
0.9
5
0.015
75
);
--foreground
:
oklch
(
0.2
147
0.0157
68.4253
);
--foreground
:
oklch
(
0.2
5
0.02
65
);
--card
:
oklch
(
0.9
765
0.0086
85.8732
);
--card
:
oklch
(
0.9
8
0.008
80
);
--card-foreground
:
oklch
(
0.
1725
0.0098
72.3456
);
--card-foreground
:
oklch
(
0.
22
0.015
68
);
--popover
:
oklch
(
0.98
82
0.0049
81.2547
);
--popover
:
oklch
(
0.98
0.008
80
);
--popover-foreground
:
oklch
(
0.2
058
0.0127
70.1823
);
--popover-foreground
:
oklch
(
0.2
5
0.02
65
);
--primary
:
oklch
(
0.4
627
0.0471
52.3674
);
--primary
:
oklch
(
0.4
5
0.08
45
);
--primary-foreground
:
oklch
(
0.9
765
0.0086
85.8732
);
--primary-foreground
:
oklch
(
0.9
8
0.008
80
);
--secondary
:
oklch
(
0.9
412
0.0196
78.9456
);
--secondary
:
oklch
(
0.9
2
0.025
70
);
--secondary-foreground
:
oklch
(
0.3
725
0.0235
65.7412
);
--secondary-foreground
:
oklch
(
0.3
5
0.03
60
);
--muted
:
oklch
(
0.9
294
0.0216
82.1567
);
--muted
:
oklch
(
0.9
0
0.025
75
);
--muted-foreground
:
oklch
(
0.5
294
0.0157
69.8745
);
--muted-foreground
:
oklch
(
0.5
0
0.02
68
);
--accent
:
oklch
(
0.
9412
0.0196
78.9456
);
--accent
:
oklch
(
0.
88
0.035
55
);
--accent-foreground
:
oklch
(
0.2
058
0.0127
70.1823
);
--accent-foreground
:
oklch
(
0.2
5
0.02
65
);
--destructive
:
oklch
(
0.4
118
0.0392
25.6734
);
--destructive
:
oklch
(
0.4
8
0.15
25
);
--destructive-foreground
:
oklch
(
0.9
647
0.0078
88.2341
);
--destructive-foreground
:
oklch
(
0.9
8
0.008
80
);
--border
:
oklch
(
0.8
824
0.0157
79.3627
);
--border
:
oklch
(
0.8
5
0.025
72
);
--input
:
oklch
(
0.8
235
0.0196
82.1456
);
--input
:
oklch
(
0.8
0
0.03
75
);
--ring
:
oklch
(
0.4
627
0.0471
52.3674
);
--ring
:
oklch
(
0.4
5
0.08
45
);
--chart-1
:
oklch
(
0.5686
0.0549
42.7834
);
--chart-1
:
oklch
(
0.5686
0.0549
42.7834
);
--chart-2
:
oklch
(
0.6275
0.0392
85.6723
);
--chart-2
:
oklch
(
0.6275
0.0392
85.6723
);
--chart-3
:
oklch
(
0.7843
0.0235
78.9456
);
--chart-3
:
oklch
(
0.7843
0.0235
78.9456
);
...
...
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