diff --git a/web/src/components/CreateTagDialog.tsx b/web/src/components/CreateTagDialog.tsx index 4667893a..76cc2223 100644 --- a/web/src/components/CreateTagDialog.tsx +++ b/web/src/components/CreateTagDialog.tsx @@ -8,6 +8,7 @@ import { useTagStore } from "@/store/module"; import { useTranslate } from "@/utils/i18n"; import { generateDialog } from "./Dialog"; import Icon from "./Icon"; +import OverflowTip from "./kit/OverflowTip"; type Props = DialogProps; @@ -108,13 +109,14 @@ const CreateTagDialog: React.FC = (props: Props) => { {Array.from(tagNameList) .sort() .map((tag) => ( - handleDeleteTag(tag)} + className="max-w-[120px] text-sm mr-2 mt-1 font-mono cursor-pointer dark:text-gray-300 hover:opacity-60 hover:line-through" > - #{tag} - + handleDeleteTag(tag)}> + #{tag} + + ))} @@ -135,13 +137,14 @@ const CreateTagDialog: React.FC = (props: Props) => { <>
{shownSuggestTagNameList.map((tag) => ( - handleUpsertTag(tag)} + className="max-w-[120px] text-sm mr-2 mt-1 font-mono cursor-pointer dark:text-gray-300 hover:opacity-60" > - #{tag} - + handleUpsertTag(tag)}> + #{tag} + + ))}