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
d34273b1
Commit
d34273b1
authored
Mar 03, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update memo icons style
parent
dcfb2b7d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MemoView.tsx
web/src/components/MemoView.tsx
+2
-2
MemoDetail.tsx
web/src/pages/MemoDetail.tsx
+1
-1
No files found.
web/src/components/MemoView.tsx
View file @
d34273b1
...
@@ -129,7 +129,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
...
@@ -129,7 +129,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
<
div
className=
"w-auto invisible group-hover:visible flex flex-row justify-between items-center gap-1"
>
<
div
className=
"w-auto invisible group-hover:visible flex flex-row justify-between items-center gap-1"
>
{
props
.
showVisibility
&&
memo
.
visibility
!==
Visibility
.
PRIVATE
&&
(
{
props
.
showVisibility
&&
memo
.
visibility
!==
Visibility
.
PRIVATE
&&
(
<
Tooltip
title=
{
t
(
`memo.visibility.${convertVisibilityToString(memo.visibility).toLowerCase()}`
as
any
)
}
placement=
"top"
>
<
Tooltip
title=
{
t
(
`memo.visibility.${convertVisibilityToString(memo.visibility).toLowerCase()}`
as
any
)
}
placement=
"top"
>
<
span
className=
"
h-7 w-7
flex justify-center items-center hover:opacity-70"
>
<
span
className=
"flex justify-center items-center hover:opacity-70"
>
<
VisibilityIcon
visibility=
{
memo
.
visibility
}
/>
<
VisibilityIcon
visibility=
{
memo
.
visibility
}
/>
</
span
>
</
span
>
</
Tooltip
>
</
Tooltip
>
...
@@ -141,7 +141,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
...
@@ -141,7 +141,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
"flex flex-row justify-start items-center hover:opacity-70"
,
"flex flex-row justify-start items-center hover:opacity-70"
,
commentAmount
===
0
&&
"invisible group-hover:visible"
,
commentAmount
===
0
&&
"invisible group-hover:visible"
,
)
}
)
}
to=
{
`/m/${memo.name}`
}
to=
{
`/m/${memo.name}
#comments
`
}
unstable_viewTransition
unstable_viewTransition
>
>
<
Icon
.
MessageCircleMore
className=
"w-4 h-4 mx-auto text-gray-500 dark:text-gray-400"
/>
<
Icon
.
MessageCircleMore
className=
"w-4 h-4 mx-auto text-gray-500 dark:text-gray-400"
/>
...
...
web/src/pages/MemoDetail.tsx
View file @
d34273b1
...
@@ -207,7 +207,7 @@ const MemoDetail = () => {
...
@@ -207,7 +207,7 @@ const MemoDetail = () => {
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
"pt-8 pb-16 w-full"
>
<
div
id=
"comments"
className=
"pt-8 pb-16 w-full"
>
<
div
className=
"relative mx-auto flex-grow w-full min-h-full flex flex-col justify-start items-start gap-y-1"
>
<
div
className=
"relative mx-auto flex-grow w-full min-h-full flex flex-col justify-start items-start gap-y-1"
>
{
comments
.
length
===
0
?
(
{
comments
.
length
===
0
?
(
<
div
className=
"w-full flex flex-col justify-center items-center py-6 mb-2"
>
<
div
className=
"w-full flex flex-col justify-center items-center py-6 mb-2"
>
...
...
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