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
83b9ea45
Commit
83b9ea45
authored
May 13, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak dark mode styles
parent
f7955437
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
CreateMemoRelationDialog.tsx
web/src/components/CreateMemoRelationDialog.tsx
+1
-1
UsersSection.tsx
web/src/components/ExploreSidebar/UsersSection.tsx
+2
-2
TagsSection.tsx
web/src/components/HomeSidebar/TagsSection.tsx
+3
-2
index.tsx
web/src/components/MemoEditor/index.tsx
+1
-1
MemoDetail.tsx
web/src/pages/MemoDetail.tsx
+3
-3
No files found.
web/src/components/CreateMemoRelationDialog.tsx
View file @
83b9ea45
...
...
@@ -23,7 +23,7 @@ const CreateMemoRelationDialog: React.FC<Props> = (props: Props) => {
const
[
isFetching
,
setIsFetching
]
=
useState
<
boolean
>
(
true
);
const
[
fetchedMemos
,
setFetchedMemos
]
=
useState
<
Memo
[]
>
([]);
const
[
selectedMemos
,
setSelectedMemos
]
=
useState
<
Memo
[]
>
([]);
const
[
embedded
,
setEmbedded
]
=
useState
<
boolean
>
(
fals
e
);
const
[
embedded
,
setEmbedded
]
=
useState
<
boolean
>
(
tru
e
);
const
filteredMemos
=
fetchedMemos
.
filter
((
memo
)
=>
!
selectedMemos
.
includes
(
memo
));
useDebounce
(
...
...
web/src/components/ExploreSidebar/UsersSection.tsx
View file @
83b9ea45
...
...
@@ -20,7 +20,7 @@ const UsersSection = () => {
return
(
users
.
length
>
0
&&
(
<
div
className=
"w-full
mt-2 flex flex-col p-2 bg-gray-50 dark:bg-black
rounded-lg"
>
<
div
className=
"w-full
border mt-2 flex flex-col p-2 bg-gray-50 dark:bg-zinc-900 dark:border-zinc-800
rounded-lg"
>
<
div
className=
"w-full mb-1 flex flex-row justify-between items-center px-1"
>
<
span
className=
"text-gray-400 font-medium text-sm select-none"
>
Users
</
span
>
<
Icon
.
RefreshCcw
onClick=
{
fetchRecommendUsers
}
className=
"text-gray-400 w-4 h-auto cursor-pointer hover:opacity-80"
/>
...
...
@@ -28,7 +28,7 @@ const UsersSection = () => {
{
users
.
map
((
user
)
=>
(
<
div
key=
{
user
.
name
}
className=
"w-full flex flex-row justify-start items-center px-2 py-1.5 hover:bg-gray-100 dark:hover:bg-zinc-
9
00 rounded-lg"
className=
"w-full flex flex-row justify-start items-center px-2 py-1.5 hover:bg-gray-100 dark:hover:bg-zinc-
8
00 rounded-lg"
>
<
Link
className=
"w-full flex flex-row items-center"
to=
{
`/u/${encodeURIComponent(user.username)}`
}
unstable_viewTransition
>
<
UserAvatar
className=
"!w-6 !h-6 !rounded-lg mr-2 shrink-0"
avatarUrl=
{
user
.
avatarUrl
}
/>
...
...
web/src/components/HomeSidebar/TagsSection.tsx
View file @
83b9ea45
import
{
Dropdown
,
Menu
,
MenuButton
,
MenuItem
,
Tooltip
}
from
"@mui/joy"
;
import
clsx
from
"clsx"
;
import
toast
from
"react-hot-toast"
;
import
useDebounce
from
"react-use/lib/useDebounce"
;
import
{
memoServiceClient
}
from
"@/grpcweb"
;
...
...
@@ -46,7 +47,7 @@ const TagsSection = () => {
<
div
className=
"flex flex-col justify-start items-start w-full mt-3 px-1 h-auto shrink-0 flex-nowrap hide-scrollbar"
>
<
div
className=
"group flex flex-row justify-start items-center w-full gap-1 mb-1"
>
<
span
className=
"text-sm leading-6 font-mono text-gray-400 select-none"
>
{
t
(
"common.tags"
)
}
</
span
>
<
div
className=
"hidden group-hover:block"
>
<
div
className=
{
clsx
(
"group-hover:block"
,
tagAmounts
.
length
>
0
?
"hidden"
:
""
)
}
>
<
Tooltip
title=
{
"Rebuild"
}
placement=
"top"
>
<
Icon
.
RefreshCcw
className=
"text-gray-400 w-4 h-auto cursor-pointer opacity-60 hover:opacity-100"
...
...
@@ -62,7 +63,7 @@ const TagsSection = () => {
))
}
</
div
>
)
:
(
<
div
className=
"p-2 border border-dashed rounded-md flex flex-row justify-start items-start gap-1 text-gray-400 dark:text-gray-500"
>
<
div
className=
"p-2 border border-dashed
dark:border-zinc-800
rounded-md flex flex-row justify-start items-start gap-1 text-gray-400 dark:text-gray-500"
>
<
Icon
.
Tags
/>
<
p
className=
"mt-0.5 text-sm leading-snug italic"
>
{
t
(
"tag.create-tags-guide"
)
}
</
p
>
</
div
>
...
...
web/src/components/MemoEditor/index.tsx
View file @
83b9ea45
...
...
@@ -412,7 +412,7 @@ const MemoEditor = (props: Props) => {
<
ResourceListView
resourceList=
{
state
.
resourceList
}
setResourceList=
{
handleSetResourceList
}
/>
<
RelationListView
relationList=
{
referenceRelations
}
setRelationList=
{
handleSetRelationList
}
/>
<
div
className=
"relative w-full flex flex-row justify-between items-center pt-2"
onFocus=
{
(
e
)
=>
e
.
stopPropagation
()
}
>
<
div
className=
"flex flex-row justify-start items-center opacity-80"
>
<
div
className=
"flex flex-row justify-start items-center opacity-80
dark:opacity-60
"
>
<
TagSelector
editorRef=
{
editorRef
}
/>
<
MarkdownMenu
editorRef=
{
editorRef
}
/>
<
UploadResourceButton
/>
...
...
web/src/pages/MemoDetail.tsx
View file @
83b9ea45
...
...
@@ -110,10 +110,10 @@ const MemoDetail = () => {
<
Button
variant=
"plain"
color=
"neutral"
endDecorator=
{
<
Icon
.
MessageCircle
className=
"w-5 h-auto text-gray-
4
00"
/>
}
endDecorator=
{
<
Icon
.
MessageCircle
className=
"w-5 h-auto text-gray-
5
00"
/>
}
onClick=
{
handleShowCommentEditor
}
>
<
span
className=
"font-normal"
>
{
t
(
"memo.comment.write-a-comment"
)
}
</
span
>
<
span
className=
"font-normal
text-gray-500
"
>
{
t
(
"memo.comment.write-a-comment"
)
}
</
span
>
</
Button
>
</
div
>
)
...
...
@@ -126,7 +126,7 @@ const MemoDetail = () => {
<
span
className=
"text-gray-400 text-sm ml-1"
>
(
{
comments
.
length
}
)
</
span
>
</
div
>
<
Button
variant=
"plain"
color=
"neutral"
onClick=
{
handleShowCommentEditor
}
>
<
span
className=
"font-normal"
>
{
t
(
"memo.comment.write-a-comment"
)
}
</
span
>
<
span
className=
"font-normal
text-gray-500
"
>
{
t
(
"memo.comment.write-a-comment"
)
}
</
span
>
</
Button
>
</
div
>
{
comments
.
map
((
comment
)
=>
(
...
...
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