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
95675cdf
Unverified
Commit
95675cdf
authored
Jul 28, 2023
by
Gerald
Committed by
GitHub
Jul 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: show full content in detail page (#2041)
fix #1373 again
parent
8328b5dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Memo.tsx
web/src/components/Memo.tsx
+3
-1
MemoDetail.tsx
web/src/pages/MemoDetail.tsx
+1
-1
No files found.
web/src/components/Memo.tsx
View file @
95675cdf
...
@@ -23,12 +23,13 @@ import "@/less/memo.less";
...
@@ -23,12 +23,13 @@ import "@/less/memo.less";
interface
Props
{
interface
Props
{
memo
:
Memo
;
memo
:
Memo
;
showCreator
?:
boolean
;
showCreator
?:
boolean
;
showFull
?:
boolean
;
showVisibility
?:
boolean
;
showVisibility
?:
boolean
;
showRelatedMemos
?:
boolean
;
showRelatedMemos
?:
boolean
;
}
}
const
Memo
:
React
.
FC
<
Props
>
=
(
props
:
Props
)
=>
{
const
Memo
:
React
.
FC
<
Props
>
=
(
props
:
Props
)
=>
{
const
{
memo
,
showCreator
,
showVisibility
,
showRelatedMemos
}
=
props
;
const
{
memo
,
showCreator
,
show
Full
,
show
Visibility
,
showRelatedMemos
}
=
props
;
const
{
i18n
}
=
useTranslation
();
const
{
i18n
}
=
useTranslation
();
const
t
=
useTranslate
();
const
t
=
useTranslate
();
const
filterStore
=
useFilterStore
();
const
filterStore
=
useFilterStore
();
...
@@ -278,6 +279,7 @@ const Memo: React.FC<Props> = (props: Props) => {
...
@@ -278,6 +279,7 @@ const Memo: React.FC<Props> = (props: Props) => {
</
div
>
</
div
>
<
MemoContent
<
MemoContent
content=
{
memo
.
content
}
content=
{
memo
.
content
}
showFull=
{
showFull
}
onMemoContentClick=
{
handleMemoContentClick
}
onMemoContentClick=
{
handleMemoContentClick
}
onMemoContentDoubleClick=
{
handleMemoContentDoubleClick
}
onMemoContentDoubleClick=
{
handleMemoContentDoubleClick
}
/>
/>
...
...
web/src/pages/MemoDetail.tsx
View file @
95675cdf
...
@@ -45,7 +45,7 @@ const MemoDetail = () => {
...
@@ -45,7 +45,7 @@ const MemoDetail = () => {
(
memo
?
(
(
memo
?
(
<>
<>
<
main
className=
"relative flex-grow max-w-2xl w-full min-h-full flex flex-col justify-start items-start px-4"
>
<
main
className=
"relative flex-grow max-w-2xl w-full min-h-full flex flex-col justify-start items-start px-4"
>
<
Memo
memo=
{
memo
}
showCreator
showRelatedMemos
/>
<
Memo
memo=
{
memo
}
showCreator
show
Full
show
RelatedMemos
/>
</
main
>
</
main
>
<
div
className=
"mt-4 w-full flex flex-row justify-center items-center gap-2"
>
<
div
className=
"mt-4 w-full flex flex-row justify-center items-center gap-2"
>
<
Link
<
Link
...
...
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