diff --git a/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx b/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx index a1dacdd1b..7d1b0e5d4 100644 --- a/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx +++ b/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx @@ -3,6 +3,8 @@ import { Button } from "@/components/ui/button"; import { useTranslate } from "@/utils/i18n"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../ui/dropdown-menu"; import { EditorRefActions } from "../Editor"; +import { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "@/components/ui/tooltip"; + interface Props { editorRef: React.RefObject; @@ -61,11 +63,20 @@ const MarkdownMenu = (props: Props) => { return ( - - - + + + + + + + + +

{t("tooltip.codeblock-checkbox")}

+
+
+
diff --git a/web/src/components/MemoEditor/ActionButton/TagSelector.tsx b/web/src/components/MemoEditor/ActionButton/TagSelector.tsx index cb1ba0657..f40e5036c 100644 --- a/web/src/components/MemoEditor/ActionButton/TagSelector.tsx +++ b/web/src/components/MemoEditor/ActionButton/TagSelector.tsx @@ -6,6 +6,7 @@ import { userStore } from "@/store"; import { useTranslate } from "@/utils/i18n"; import { Popover, PopoverContent, PopoverTrigger } from "../../ui/popover"; import { EditorRefActions } from "../Editor"; +import { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "@/components/ui/tooltip"; interface Props { editorRef: React.RefObject; @@ -34,11 +35,20 @@ const TagSelector = observer((props: Props) => { return ( - - - + + + + + + + + +

{t("tooltip.tags")}

+
+
+
{tags.length > 0 ? (
diff --git a/web/src/locales/en.json b/web/src/locales/en.json index 5391a1076..c399aa15b 100644 --- a/web/src/locales/en.json +++ b/web/src/locales/en.json @@ -445,11 +445,11 @@ "rename-tip": "All your memos with this tag will be updated." }, "tooltip": { - "codeblock-checkbox": "Code Block & Checkbox", + "codeblock-checkbox": "Markdown Menu", "tags": "Tags", "link-memo": "Link Memo", - "select-location": "Select Location", - "select-visibility": "Select Visibility", + "select-location": "Location", + "select-visibility": "Visibility", "upload-attachment": "Upload Attachment" }