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
f2e27c16
Commit
f2e27c16
authored
Jul 06, 2025
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak colors
parent
240d89fb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
26 deletions
+22
-26
MemoAttachmentListView.tsx
web/src/components/MemoAttachmentListView.tsx
+2
-5
MemoView.tsx
web/src/components/MemoView.tsx
+2
-3
Navigation.tsx
web/src/components/Navigation.tsx
+2
-2
style.css
web/src/style.css
+16
-16
No files found.
web/src/components/MemoAttachmentListView.tsx
View file @
f2e27c16
...
@@ -39,10 +39,7 @@ const MemoAttachmentListView = ({ attachments = [] }: { attachments: Attachment[
...
@@ -39,10 +39,7 @@ const MemoAttachmentListView = ({ attachments = [] }: { attachments: Attachment[
if
(
type
===
"image/*"
)
{
if
(
type
===
"image/*"
)
{
return
(
return
(
<
img
<
img
className=
{
cn
(
className=
{
cn
(
"cursor-pointer h-full w-auto rounded-lg border border-border/60 object-contain transition-colors"
,
className
)
}
"cursor-pointer h-full w-auto rounded-lg border border-border object-contain hover:border-accent transition-colors"
,
className
,
)
}
src=
{
attachment
.
externalLink
?
attachmentUrl
:
attachmentUrl
+
"?thumbnail=true"
}
src=
{
attachment
.
externalLink
?
attachmentUrl
:
attachmentUrl
+
"?thumbnail=true"
}
onError=
{
(
e
)
=>
{
onError=
{
(
e
)
=>
{
// Fallback to original image if thumbnail fails
// Fallback to original image if thumbnail fails
...
@@ -61,7 +58,7 @@ const MemoAttachmentListView = ({ attachments = [] }: { attachments: Attachment[
...
@@ -61,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
object-contain bg-popover hover:border-accent
transition-colors"
,
"cursor-pointer h-full w-auto rounded-lg border border-border
/60 object-contain bg-popover
transition-colors"
,
className
,
className
,
)
}
)
}
preload=
"metadata"
preload=
"metadata"
...
...
web/src/components/MemoView.tsx
View file @
f2e27c16
...
@@ -137,7 +137,6 @@ const MemoView: React.FC<Props> = observer((props: Props) => {
...
@@ -137,7 +137,6 @@ const MemoView: React.FC<Props> = observer((props: Props) => {
<
div
<
div
className=
{
cn
(
className=
{
cn
(
"group relative flex flex-col justify-start items-start w-full px-4 py-3 mb-2 gap-2 bg-card text-card-foreground rounded-lg border border-border transition-colors"
,
"group relative flex flex-col justify-start items-start w-full px-4 py-3 mb-2 gap-2 bg-card text-card-foreground rounded-lg border border-border transition-colors"
,
"hover:bg-accent hover:text-accent-foreground hover:border-accent"
,
className
,
className
,
)
}
)
}
>
>
...
@@ -182,7 +181,7 @@ const MemoView: React.FC<Props> = observer((props: Props) => {
...
@@ -182,7 +181,7 @@ const MemoView: React.FC<Props> = observer((props: Props) => {
{
props
.
showVisibility
&&
memo
.
visibility
!==
Visibility
.
PRIVATE
&&
(
{
props
.
showVisibility
&&
memo
.
visibility
!==
Visibility
.
PRIVATE
&&
(
<
Tooltip
>
<
Tooltip
>
<
TooltipTrigger
>
<
TooltipTrigger
>
<
span
className=
"flex justify-center items-center
hover:bg-accent hover:text-accent-foreground rounded-md p-1 transition-colors
"
>
<
span
className=
"flex justify-center items-center
rounded-md p-1 hover:opacity-80
"
>
<
VisibilityIcon
visibility=
{
memo
.
visibility
}
/>
<
VisibilityIcon
visibility=
{
memo
.
visibility
}
/>
</
span
>
</
span
>
</
TooltipTrigger
>
</
TooltipTrigger
>
...
@@ -194,7 +193,7 @@ const MemoView: React.FC<Props> = observer((props: Props) => {
...
@@ -194,7 +193,7 @@ const MemoView: React.FC<Props> = observer((props: Props) => {
{
!
isInMemoDetailPage
&&
(
workspaceMemoRelatedSetting
.
enableComment
||
commentAmount
>
0
)
&&
(
{
!
isInMemoDetailPage
&&
(
workspaceMemoRelatedSetting
.
enableComment
||
commentAmount
>
0
)
&&
(
<
Link
<
Link
className=
{
cn
(
className=
{
cn
(
"flex flex-row justify-start items-center
hover:bg-accent hover:text-accent-foreground rounded-md p-1 transition-colors
"
,
"flex flex-row justify-start items-center
rounded-md p-1 hover:opacity-80
"
,
commentAmount
===
0
&&
"invisible group-hover:visible"
,
commentAmount
===
0
&&
"invisible group-hover:visible"
,
)
}
)
}
to=
{
`/${memo.name}#comments`
}
to=
{
`/${memo.name}#comments`
}
...
...
web/src/components/Navigation.tsx
View file @
f2e27c16
...
@@ -81,8 +81,8 @@ const Navigation = observer((props: Props) => {
...
@@ -81,8 +81,8 @@ const Navigation = observer((props: Props) => {
"px-2 py-2 rounded-2xl border flex flex-row items-center text-lg text-sidebar-foreground transition-colors"
,
"px-2 py-2 rounded-2xl border flex flex-row items-center text-lg text-sidebar-foreground transition-colors"
,
collapsed
?
""
:
"w-full px-4"
,
collapsed
?
""
:
"w-full px-4"
,
isActive
isActive
?
"bg-sidebar-
primary text-sidebar-primary-foreground border-sidebar-border
"
?
"bg-sidebar-
accent text-sidebar-accent-foreground border-sidebar-accent-border drop-shadow
"
:
"border-transparent hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:border-sidebar-
border
"
,
:
"border-transparent hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:border-sidebar-
accent-border opacity-80
"
,
)
)
}
}
key=
{
navLink
.
id
}
key=
{
navLink
.
id
}
...
...
web/src/style.css
View file @
f2e27c16
:root
{
:root
{
--background
:
oklch
(
0.9818
0.0054
95.0986
);
--background
:
oklch
(
0.9818
0.0054
95.0986
);
--foreground
:
oklch
(
0.
3
438
0.0269
95.7226
);
--foreground
:
oklch
(
0.
2
438
0.0269
95.7226
);
--card
:
oklch
(
0.9818
0.0054
95.0986
);
--card
:
oklch
(
0.9818
0.0054
95.0986
);
--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
);
--primary
:
oklch
(
0.
6171
0.1375
39.0427
);
--primary
:
oklch
(
0.
3918
0.0127
286.3
);
--primary-foreground
:
oklch
(
1
0
0
);
--primary-foreground
:
oklch
(
0.9818
0.0054
95.0986
);
--secondary
:
oklch
(
0.9245
0.0138
92.9892
);
--secondary
:
oklch
(
0.9245
0.0138
92.9892
);
--secondary-foreground
:
oklch
(
0.4334
0.0177
98.6048
);
--secondary-foreground
:
oklch
(
0.4334
0.0177
98.6048
);
--muted
:
oklch
(
0.9341
0.0153
90.239
);
--muted
:
oklch
(
0.9341
0.0153
90.239
);
--muted-foreground
:
oklch
(
0.
60
59
0.0075
97.4233
);
--muted-foreground
:
oklch
(
0.
55
59
0.0075
97.4233
);
--accent
:
oklch
(
0.9245
0.0138
92.9892
);
--accent
:
oklch
(
0.9245
0.0138
92.9892
);
--accent-foreground
:
oklch
(
0.2671
0.0196
98.939
);
--accent-foreground
:
oklch
(
0.2671
0.0196
98.939
);
--destructive
:
oklch
(
0.1908
0.002
106.5859
);
--destructive
:
oklch
(
0.1908
0.002
106.5859
);
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
--chart-5
:
oklch
(
0.5608
0.1348
42.0584
);
--chart-5
:
oklch
(
0.5608
0.1348
42.0584
);
--sidebar
:
oklch
(
0.9663
0.008
98.8792
);
--sidebar
:
oklch
(
0.9663
0.008
98.8792
);
--sidebar-foreground
:
oklch
(
0.359
0.0051
106.6524
);
--sidebar-foreground
:
oklch
(
0.359
0.0051
106.6524
);
--sidebar-primary
:
oklch
(
0.
6171
0.1375
39.0427
);
--sidebar-primary
:
oklch
(
0.
3918
0.0127
286.3
);
--sidebar-primary-foreground
:
oklch
(
0.98
81
0
0
);
--sidebar-primary-foreground
:
oklch
(
0.98
18
0.0054
95.0986
);
--sidebar-accent
:
oklch
(
0.9245
0.0138
92.9892
);
--sidebar-accent
:
oklch
(
0.9245
0.0138
92.9892
);
--sidebar-accent-foreground
:
oklch
(
0.325
0
0
);
--sidebar-accent-foreground
:
oklch
(
0.325
0
0
);
--sidebar-border
:
oklch
(
0.9401
0
0
);
--sidebar-border
:
oklch
(
0.9401
0
0
);
...
@@ -51,19 +51,19 @@
...
@@ -51,19 +51,19 @@
.dark
{
.dark
{
--background
:
oklch
(
0.2679
0.0036
106.6427
);
--background
:
oklch
(
0.2679
0.0036
106.6427
);
--foreground
:
oklch
(
0.8
0
74
0.0142
93.0137
);
--foreground
:
oklch
(
0.8
2
74
0.0142
93.0137
);
--card
:
oklch
(
0.2679
0.0036
106.6427
);
--card
:
oklch
(
0.2679
0.0036
106.6427
);
--card-foreground
:
oklch
(
0.
98
18
0.0054
95.0986
);
--card-foreground
:
oklch
(
0.
85
18
0.0054
95.0986
);
--popover
:
oklch
(
0.3085
0.0035
106.6039
);
--popover
:
oklch
(
0.3085
0.0035
106.6039
);
--popover-foreground
:
oklch
(
0.
92
11
0.004
106.4781
);
--popover-foreground
:
oklch
(
0.
84
11
0.004
106.4781
);
--primary
:
oklch
(
0.
6724
0.1308
38.7559
);
--primary
:
oklch
(
0.
7062
0.0156
286.3
);
--primary-foreground
:
oklch
(
1
0
0
);
--primary-foreground
:
oklch
(
0.2679
0.0036
106.6427
);
--secondary
:
oklch
(
0.9818
0.0054
95.0986
);
--secondary
:
oklch
(
0.9818
0.0054
95.0986
);
--secondary-foreground
:
oklch
(
0.3085
0.0035
106.6039
);
--secondary-foreground
:
oklch
(
0.3085
0.0035
106.6039
);
--muted
:
oklch
(
0.2213
0.0038
106.707
);
--muted
:
oklch
(
0.2213
0.0038
106.707
);
--muted-foreground
:
oklch
(
0.
77
13
0.0169
99.0657
);
--muted-foreground
:
oklch
(
0.
58
13
0.0169
99.0657
);
--accent
:
oklch
(
0.213
0.0078
95.4245
);
--accent
:
oklch
(
0.213
0.0078
95.4245
);
--accent-foreground
:
oklch
(
0.
96
63
0.008
98.8792
);
--accent-foreground
:
oklch
(
0.
81
63
0.008
98.8792
);
--destructive
:
oklch
(
0.6368
0.2078
25.3313
);
--destructive
:
oklch
(
0.6368
0.2078
25.3313
);
--destructive-foreground
:
oklch
(
1
0
0
);
--destructive-foreground
:
oklch
(
1
0
0
);
--border
:
oklch
(
0.3618
0.0101
106.8928
);
--border
:
oklch
(
0.3618
0.0101
106.8928
);
...
@@ -75,9 +75,9 @@
...
@@ -75,9 +75,9 @@
--chart-4
:
oklch
(
0.3074
0.0516
289.323
);
--chart-4
:
oklch
(
0.3074
0.0516
289.323
);
--chart-5
:
oklch
(
0.5608
0.1348
42.0584
);
--chart-5
:
oklch
(
0.5608
0.1348
42.0584
);
--sidebar
:
oklch
(
0.2357
0.0024
67.7077
);
--sidebar
:
oklch
(
0.2357
0.0024
67.7077
);
--sidebar-foreground
:
oklch
(
0.8
0
74
0.0142
93.0137
);
--sidebar-foreground
:
oklch
(
0.8
2
74
0.0142
93.0137
);
--sidebar-primary
:
oklch
(
0.
325
0
0
);
--sidebar-primary
:
oklch
(
0.
7062
0.0156
286.3
);
--sidebar-primary-foreground
:
oklch
(
0.
9881
0
0
);
--sidebar-primary-foreground
:
oklch
(
0.
2679
0.0036
106.6427
);
--sidebar-accent
:
oklch
(
0.168
0.002
106.6177
);
--sidebar-accent
:
oklch
(
0.168
0.002
106.6177
);
--sidebar-accent-foreground
:
oklch
(
0.8074
0.0142
93.0137
);
--sidebar-accent-foreground
:
oklch
(
0.8074
0.0142
93.0137
);
--sidebar-border
:
oklch
(
0.9401
0
0
);
--sidebar-border
:
oklch
(
0.9401
0
0
);
...
...
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