From 00da3e3e7b6eb8b97374aefe9b553e160831f61e Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Thu, 27 Jun 2024 09:15:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=B8=BB=E9=A2=98=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=8D=A1=E9=A1=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ThemeSwitch.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/components/ThemeSwitch.js b/components/ThemeSwitch.js index 6e9e3543..33c7ff8f 100644 --- a/components/ThemeSwitch.js +++ b/components/ThemeSwitch.js @@ -53,11 +53,13 @@ const ThemeSwitch = () => {
+ className='fixed group flex flex-col items-start space-y-2 overflow-hidden z-50 p-3 + dark:text-white bg-white dark:bg-black + rounded-xl shadow-lg hover:scale-105 hover:shadow-2xl '> {/* 主题切换按钮 */} -
+
-
+
@@ -79,21 +81,21 @@ const ThemeSwitch = () => {
{/* 深色按钮 */} -
+
+ className='cursor-pointer w-0 group-hover:w-24 duration-200 overflow-hidden whitespace-nowrap pl-1 h-auto'> {isDarkMode ? locale.MENU.DARK_MODE : locale.MENU.LIGHT_MODE}
{/* 翻译按钮 */} -
+
-
+