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
4f10198e
Commit
4f10198e
authored
Sep 26, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add tooltip to icon buttons
parent
7722c416
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
MemoDetail.tsx
web/src/pages/MemoDetail.tsx
+15
-9
No files found.
web/src/pages/MemoDetail.tsx
View file @
4f10198e
...
@@ -124,16 +124,22 @@ const MemoDetail = () => {
...
@@ -124,16 +124,22 @@ const MemoDetail = () => {
</
div
>
</
div
>
<
div
className=
"flex flex-row sm:justify-end items-center"
>
<
div
className=
"flex flex-row sm:justify-end items-center"
>
{
allowEdit
&&
(
{
allowEdit
&&
(
<
Tooltip
title=
{
"Edit"
}
placement=
"top"
>
<
IconButton
size=
"sm"
onClick=
{
handleEditMemoClick
}
>
<
IconButton
size=
"sm"
onClick=
{
handleEditMemoClick
}
>
<
Icon
.
Edit3
className=
"w-4 h-auto text-gray-600 dark:text-gray-400"
/>
<
Icon
.
Edit3
className=
"w-4 h-auto text-gray-600 dark:text-gray-400"
/>
</
IconButton
>
</
IconButton
>
</
Tooltip
>
)
}
)
}
<
Tooltip
title=
{
"Copy link"
}
placement=
"top"
>
<
IconButton
size=
"sm"
onClick=
{
handleCopyLinkBtnClick
}
>
<
IconButton
size=
"sm"
onClick=
{
handleCopyLinkBtnClick
}
>
<
Icon
.
Link
className=
"w-4 h-auto text-gray-600 dark:text-gray-400"
/>
<
Icon
.
Link
className=
"w-4 h-auto text-gray-600 dark:text-gray-400"
/>
</
IconButton
>
</
IconButton
>
</
Tooltip
>
<
Tooltip
title=
{
"Share"
}
placement=
"top"
>
<
IconButton
size=
"sm"
onClick=
{
()
=>
showShareMemoDialog
(
memo
)
}
>
<
IconButton
size=
"sm"
onClick=
{
()
=>
showShareMemoDialog
(
memo
)
}
>
<
Icon
.
Share
className=
"w-4 h-auto text-gray-600 dark:text-gray-400"
/>
<
Icon
.
Share
className=
"w-4 h-auto text-gray-600 dark:text-gray-400"
/>
</
IconButton
>
</
IconButton
>
</
Tooltip
>
</
div
>
</
div
>
</
div
>
</
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