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 <tukon479@gmail.com>
This commit is contained in:
Innei
2025-06-27 16:07:07 +08:00
parent 1aae171033
commit 854ee1df8d
6 changed files with 2 additions and 15 deletions

View File

@@ -149,7 +149,7 @@ export const FloatingActionButton = ({
// setIsOpen(false)
}}
>
<i className={clsxm(action.icon, 'text-xl text-accent')} />
<i className={clsxm(action.icon, 'text-xl text-white')} />
</GlassButton>
</m.div>
))}
@@ -158,19 +158,11 @@ export const FloatingActionButton = ({
onClick={() => setIsOpen(!isOpen)}
className="relative z-10"
>
{isOpen && (
<m.div
className="pointer-events-none absolute inset-0 rounded-full bg-white/20"
initial={{ scale: 0, opacity: 0.7 }}
animate={{ scale: 3, opacity: 0 }}
transition={{ duration: 0.6, ease: 'easeOut' }}
/>
)}
<AnimatePresence initial={false} mode="wait">
<m.i
key={isOpen ? 'close' : 'settings'}
className={clsxm(
'absolute text-2xl text-accent',
'absolute text-2xl text-white',
isOpen
? 'i-mingcute-close-line'
: 'i-mingcute-settings-3-line',

View File

@@ -225,7 +225,6 @@
"loading.heic.main": "HEIC",
"loading.webgl.building": "Building high-quality textures...",
"loading.webgl.main": "WebGL Texture Loading",
"photo.conversion.transmux": "Transmux",
"photo.conversion.webcodecs": "WebCodecs",
"photo.copy.error": "Failed to copy image, please try again later",
"photo.copy.image": "Copy Image",

View File

@@ -224,7 +224,6 @@
"loading.heic.main": "HEIC",
"loading.webgl.building": "고품질 텍스처 구축 중...",
"loading.webgl.main": "WebGL 텍스처 로딩",
"photo.conversion.transmux": "트랜스먹스",
"photo.conversion.webcodecs": "WebCodecs",
"photo.copy.error": "이미지 복사에 실패했습니다. 나중에 다시 시도해 주세요.",
"photo.copy.image": "이미지 복사",

View File

@@ -225,7 +225,6 @@
"loading.heic.main": "HEIC",
"loading.webgl.building": "正在构建高质量纹理...",
"loading.webgl.main": "WebGL 纹理加载",
"photo.conversion.transmux": "转封装",
"photo.conversion.webcodecs": "WebCodecs",
"photo.copy.error": "复制图像失败,请稍后重试",
"photo.copy.image": "复制图像",

View File

@@ -224,7 +224,6 @@
"loading.heic.main": "HEIC",
"loading.webgl.building": "正在建置高品質紋理...",
"loading.webgl.main": "WebGL 紋理載入",
"photo.conversion.transmux": "轉封裝",
"photo.conversion.webcodecs": "WebCodecs",
"photo.copy.error": "複製圖像失敗,請稍後重試",
"photo.copy.image": "複製圖像",

View File

@@ -224,7 +224,6 @@
"loading.heic.main": "HEIC",
"loading.webgl.building": "正在建置高品質紋理...",
"loading.webgl.main": "WebGL 紋理載入",
"photo.conversion.transmux": "轉封裝",
"photo.conversion.webcodecs": "WebCodecs",
"photo.copy.error": "複製圖像失敗,請稍後重試",
"photo.copy.image": "複製圖像",