From c5f7ed7ab638dd39df1f3444e566e089fc152daa Mon Sep 17 00:00:00 2001 From: q <787025321@qq.com> Date: Thu, 7 Aug 2025 17:06:28 +0800 Subject: [PATCH 1/2] fix: dark styles --- src/components/CopyPageButton/index.tsx | 8 +++++--- src/components/CopyPageButton/styles.module.scss | 14 ++++++++++++++ src/css/custom.scss | 10 ++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/components/CopyPageButton/index.tsx b/src/components/CopyPageButton/index.tsx index 4449503cc7..9cead2cddd 100644 --- a/src/components/CopyPageButton/index.tsx +++ b/src/components/CopyPageButton/index.tsx @@ -110,7 +110,7 @@ const CopyDropdownButton: React.FC = () => { }, [sourceUrl, handleCopy]); const renderButtonContent = useMemo( () => ( - + {loading ? ( ) : isCopied ? ( @@ -118,7 +118,9 @@ const CopyDropdownButton: React.FC = () => { ) : ( )} - {loading ? $t("Copying...") : $t("Copy Page")} + + {loading ? $t("Copying...") : $t("Copy Page")} + ), [loading, isCopied] @@ -129,7 +131,7 @@ const CopyDropdownButton: React.FC = () => { onClick={() => handleCopy(sourceUrl)} menu={menu} placement="bottomRight" - icon={} + icon={} className={styles.buttonCainter} trigger={["click"]} > diff --git a/src/components/CopyPageButton/styles.module.scss b/src/components/CopyPageButton/styles.module.scss index af17652384..a6e1e6ed86 100644 --- a/src/components/CopyPageButton/styles.module.scss +++ b/src/components/CopyPageButton/styles.module.scss @@ -17,3 +17,17 @@ } } } + +.buttonText { + svg > path { + fill: var(--color-text-0) !important; + } + span { + color: var(--color-text-1); + } +} +.svg { + path { + fill: var(--color-text-0) !important; + } +} diff --git a/src/css/custom.scss b/src/css/custom.scss index 4287afb1fe..fe1690af9f 100644 --- a/src/css/custom.scss +++ b/src/css/custom.scss @@ -372,3 +372,13 @@ textarea { display: flex; width: 100%; } + +.ant-dropdown .ant-dropdown-menu { + background-color: var(--color-bg-1); + .ant-dropdown-menu-item { + color: var(--color-text-1); + &:hover { + background-color: var(--color-fill-1); + } + } +} From 7c96f11b941323330757ac512d0c4095c2169145 Mon Sep 17 00:00:00 2001 From: q <787025321@qq.com> Date: Thu, 7 Aug 2025 17:12:11 +0800 Subject: [PATCH 2/2] fix: add special md --- src/components/CopyPageButton/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/CopyPageButton/index.tsx b/src/components/CopyPageButton/index.tsx index 9cead2cddd..eecdae9714 100644 --- a/src/components/CopyPageButton/index.tsx +++ b/src/components/CopyPageButton/index.tsx @@ -15,6 +15,7 @@ const SPECIAL_LINKS = [ "/guides/products/dc/pricing", "guides/deploy/deploy/non-production/deploying-databend", "/guides/cloud/new-account", + "/release-notes/", ]; const getPageContentAsHtml = (): string | null => {