From 8e257b70f7b36452a8899de31183f95c80e7f70a Mon Sep 17 00:00:00 2001
From: mackt <1033530438@qq.com>
Date: Mon, 29 Apr 2024 14:13:42 +0800
Subject: [PATCH] update(Player): styles
---
src/components/AudioPlayer/Player.tsx | 14 ++++++----
src/components/AudioPlayer/widget/Order.tsx | 26 +++++++++----------
src/components/AudioPlayer/widget/Volume.tsx | 5 ++--
.../AudioPlayer/widget/VolumeBar.tsx | 24 +++++++++--------
.../AudioPlayer/widget/index.module.css | 26 ++++++++++++++-----
src/components/Icon/heart.module.css | 14 +++++++---
uno.config.ts | 17 ------------
7 files changed, 69 insertions(+), 57 deletions(-)
diff --git a/src/components/AudioPlayer/Player.tsx b/src/components/AudioPlayer/Player.tsx
index 9621f2b..7a7dac5 100644
--- a/src/components/AudioPlayer/Player.tsx
+++ b/src/components/AudioPlayer/Player.tsx
@@ -212,9 +212,9 @@ export default function AudioPlayer({
{/* 播放进度 */}
-
+
{/* 播放时长 */}
-
+
{secondToDate(trackProgress)}
@@ -226,7 +226,7 @@ export default function AudioPlayer({
/>
{/* 总时长 */}
-
+
{secondToDate(duration || 0)}
@@ -238,8 +238,12 @@ export default function AudioPlayer({
{/* 收藏歌曲 */}
{
}
{/* 播放顺序 */}
- {playListInfo.type !== 'fm' &&
}
-
+
+
diff --git a/src/components/AudioPlayer/widget/Order.tsx b/src/components/AudioPlayer/widget/Order.tsx
index b0bd2f9..ee42348 100644
--- a/src/components/AudioPlayer/widget/Order.tsx
+++ b/src/components/AudioPlayer/widget/Order.tsx
@@ -24,22 +24,22 @@ export default function Order({
// ));
return (
-
+
{orderList.find((item) => item.value === order)?.icon ?? null}
);
}
const ListLoop = () => (
-