From 854ee1df8d64887d9b9794cab44af939286966de Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 27 Jun 2025 16:07:07 +0800 Subject: [PATCH] fix: update FloatingActionButton styles and remove unused animation - Changed the icon color in the FloatingActionButton component from 'text-accent' to 'text-white' for better visibility. - Removed the unused animation for the button's background when it is open, simplifying the component's rendering logic. Signed-off-by: Innei --- .../web/src/modules/gallery/FloatingActionButton.tsx | 12 ++---------- locales/app/en.json | 1 - locales/app/ko.json | 1 - locales/app/zh-CN.json | 1 - locales/app/zh-HK.json | 1 - locales/app/zh-TW.json | 1 - 6 files changed, 2 insertions(+), 15 deletions(-) diff --git a/apps/web/src/modules/gallery/FloatingActionButton.tsx b/apps/web/src/modules/gallery/FloatingActionButton.tsx index ffac60d4..12cd7985 100644 --- a/apps/web/src/modules/gallery/FloatingActionButton.tsx +++ b/apps/web/src/modules/gallery/FloatingActionButton.tsx @@ -149,7 +149,7 @@ export const FloatingActionButton = ({ // setIsOpen(false) }} > - + ))} @@ -158,19 +158,11 @@ export const FloatingActionButton = ({ onClick={() => setIsOpen(!isOpen)} className="relative z-10" > - {isOpen && ( - - )}