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
200a0d3e
Commit
200a0d3e
authored
Mar 29, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: memo relations
parent
ea662806
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
AddMemoRelationButton.tsx
...ponents/MemoEditor/ActionButton/AddMemoRelationButton.tsx
+1
-1
MemoRelationListView.tsx
web/src/components/MemoRelationListView.tsx
+1
-1
No files found.
web/src/components/MemoEditor/ActionButton/AddMemoRelationButton.tsx
View file @
200a0d3e
...
@@ -34,7 +34,7 @@ const AddMemoRelationButton = (props: Props) => {
...
@@ -34,7 +34,7 @@ const AddMemoRelationButton = (props: Props) => {
editorRef
.
current
.
insertText
(
"
\n
"
);
editorRef
.
current
.
insertText
(
"
\n
"
);
}
}
for
(
const
memo
of
memos
)
{
for
(
const
memo
of
memos
)
{
editorRef
.
current
.
insertText
(
`![[memos/
${
memo
.
name
}
]]\n`
);
editorRef
.
current
.
insertText
(
`![[memos/
${
memo
.
uid
}
]]\n`
);
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
editorRef
.
current
?.
scrollToCursor
();
editorRef
.
current
?.
scrollToCursor
();
...
...
web/src/components/MemoRelationListView.tsx
View file @
200a0d3e
...
@@ -43,7 +43,7 @@ const MemoRelationListView = (props: Props) => {
...
@@ -43,7 +43,7 @@ const MemoRelationListView = (props: Props) => {
<
div
key=
{
memo
.
name
}
className=
"block w-auto max-w-[50%]"
>
<
div
key=
{
memo
.
name
}
className=
"block w-auto max-w-[50%]"
>
<
Link
<
Link
className=
"px-2 border rounded-md w-auto text-sm leading-6 flex flex-row justify-start items-center flex-nowrap text-gray-600 dark:text-gray-400 dark:border-zinc-700 dark:bg-zinc-900 hover:shadow hover:opacity-80"
className=
"px-2 border rounded-md w-auto text-sm leading-6 flex flex-row justify-start items-center flex-nowrap text-gray-600 dark:text-gray-400 dark:border-zinc-700 dark:bg-zinc-900 hover:shadow hover:opacity-80"
to=
{
`/m/${memo.
name
}`
}
to=
{
`/m/${memo.
uid
}`
}
unstable_viewTransition
unstable_viewTransition
>
>
<
Tooltip
title=
"Reference"
placement=
"top"
>
<
Tooltip
title=
"Reference"
placement=
"top"
>
...
...
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