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
15be18fa
Commit
15be18fa
authored
Mar 14, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update compace mode handler
parent
9ce381ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
index.tsx
web/src/components/MemoContent/index.tsx
+4
-5
No files found.
web/src/components/MemoContent/index.tsx
View file @
15be18fa
import
classNames
from
"classnames"
;
import
classNames
from
"classnames"
;
import
{
memo
,
useEffect
,
useRef
,
useState
}
from
"react"
;
import
{
memo
,
useEffect
,
useRef
,
useState
}
from
"react"
;
import
{
Link
}
from
"react-router-dom"
;
import
useCurrentUser
from
"@/hooks/useCurrentUser"
;
import
useCurrentUser
from
"@/hooks/useCurrentUser"
;
import
{
useMemoStore
}
from
"@/store/v1"
;
import
{
useMemoStore
}
from
"@/store/v1"
;
import
{
Node
,
NodeType
}
from
"@/types/node"
;
import
{
Node
,
NodeType
}
from
"@/types/node"
;
...
@@ -94,13 +93,13 @@ const MemoContent: React.FC<Props> = (props: Props) => {
...
@@ -94,13 +93,13 @@ const MemoContent: React.FC<Props> = (props: Props) => {
</
RendererContext
.
Provider
>
</
RendererContext
.
Provider
>
{
memo
&&
showCompactMode
&&
(
{
memo
&&
showCompactMode
&&
(
<
div
className=
"w-full mt-2"
>
<
div
className=
"w-full mt-2"
>
<
Link
<
div
className=
"w-auto inline-flex flex-row justify-start items-center
text-sm text-blue-600 dark:text-blue-400 hover:underline
"
className=
"w-auto inline-flex flex-row justify-start items-center
cursor-pointer text-sm text-blue-600 dark:text-blue-400 hover:opacity-80
"
to=
{
`/m/${memo.name}`
}
onClick=
{
()
=>
setShowCompactMode
(
false
)
}
>
>
<
span
>
{
t
(
"memo.show-more"
)
}
</
span
>
<
span
>
{
t
(
"memo.show-more"
)
}
</
span
>
<
Icon
.
ChevronRight
className=
"w-4 h-auto"
/>
<
Icon
.
ChevronRight
className=
"w-4 h-auto"
/>
</
Link
>
</
div
>
</
div
>
</
div
>
)
}
)
}
</>
</>
...
...
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