diff --git a/web/src/components/CopyText/index.tsx b/web/src/components/CopyText/index.tsx index e1fe5ce175..f4becf7dba 100644 --- a/web/src/components/CopyText/index.tsx +++ b/web/src/components/CopyText/index.tsx @@ -1,6 +1,7 @@ import React, { useEffect } from "react"; import { CopyIcon } from "@chakra-ui/icons"; import { Tooltip, useClipboard } from "@chakra-ui/react"; +import clsx from "clsx"; import { t } from "i18next"; import useGlobalStore from "@/pages/globalStore"; @@ -30,7 +31,7 @@ export default function CopyText(props: { return ( {React.cloneElement(children, { - className: className || "", + className: clsx("cursor-pointer", className), onClick: () => { onCopy(); showSuccess(tip || t("Copied")); diff --git a/web/src/pages/app/functions/mods/EditorPanel/index.tsx b/web/src/pages/app/functions/mods/EditorPanel/index.tsx index dc8c45e3a6..2a8fc3b1b8 100644 --- a/web/src/pages/app/functions/mods/EditorPanel/index.tsx +++ b/web/src/pages/app/functions/mods/EditorPanel/index.tsx @@ -60,10 +60,7 @@ function EditorPanel() {
- +
diff --git a/web/src/pages/app/setting/CustomDomain/index.tsx b/web/src/pages/app/setting/CustomDomain/index.tsx index b5848bbb40..ef778741ab 100644 --- a/web/src/pages/app/setting/CustomDomain/index.tsx +++ b/web/src/pages/app/setting/CustomDomain/index.tsx @@ -37,9 +37,7 @@ export default function CustomDomain() { CNAME - } - /> + } /> diff --git a/web/src/pages/app/storages/mods/CreateWebsiteModal/index.tsx b/web/src/pages/app/storages/mods/CreateWebsiteModal/index.tsx index d64f976d6e..5af04f54e8 100644 --- a/web/src/pages/app/storages/mods/CreateWebsiteModal/index.tsx +++ b/web/src/pages/app/storages/mods/CreateWebsiteModal/index.tsx @@ -144,9 +144,7 @@ function CreateWebsiteModal() { CNAME - } - /> + } />