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
57ce96d2
Commit
57ce96d2
authored
Jun 30, 2022
by
boojack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix expand style
parent
64f67f4b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
Memo.tsx
web/src/components/Memo.tsx
+4
-4
memo.less
web/src/less/memo.less
+7
-0
No files found.
web/src/components/Memo.tsx
View file @
57ce96d2
...
...
@@ -165,12 +165,12 @@ const Memo: React.FC<Props> = (props: Props) => {
<
span
className=
"tip-text"
>
Share
</
span
>
</
div
>
</
div
>
<
span
className=
"btn"
onClick=
{
handleShowMemoStoryDialog
}
>
View Story
</
span
>
<
span
className=
"btn"
onClick=
{
handleMarkMemoClick
}
>
Mark
</
span
>
<
span
className=
"btn"
onClick=
{
handleShowMemoStoryDialog
}
>
View Story
</
span
>
<
span
className=
{
`btn delete-btn ${showConfirmDeleteBtn ? "final-confirm" : ""}`
}
onClick=
{
handleDeleteMemoClick
}
>
{
showConfirmDeleteBtn
?
"Delete!"
:
"Delete"
}
</
span
>
...
...
@@ -180,7 +180,7 @@ const Memo: React.FC<Props> = (props: Props) => {
</
div
>
<
div
ref=
{
memoContainerRef
}
className=
{
`memo-content-text ${state.expandButtonStatus === 0 ? "
!max-h-96 overflow-y-hidden truncate
" : ""}`
}
className=
{
`memo-content-text ${state.expandButtonStatus === 0 ? "
expanded
" : ""}`
}
onClick=
{
handleMemoContentClick
}
dangerouslySetInnerHTML=
{
{
__html
:
formatMemoContent
(
memo
.
content
)
}
}
></
div
>
...
...
web/src/less/memo.less
View file @
57ce96d2
...
...
@@ -88,6 +88,13 @@
> .memo-content-text {
@apply w-full h-auto transition-all;
&.expanded {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 8;
overflow: hidden;
}
.tag-span {
@apply cursor-pointer hover:opacity-80;
}
...
...
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