From 6f233bdbcb6efbd64d58e784c6707e8ce4b1aff2 Mon Sep 17 00:00:00 2001
From: mackt <1033530438@qq.com>
Date: Tue, 30 Apr 2024 12:52:54 +0800
Subject: [PATCH] update(Player): styles
---
src/components/AudioPlayer/Player.tsx | 89 +++++++++----------
src/components/AudioPlayer/PlayerBar.tsx | 2 +-
src/components/AudioPlayer/PlayerCard.tsx | 4 +-
.../AudioPlayer/widget/index.module.css | 1 -
4 files changed, 46 insertions(+), 50 deletions(-)
diff --git a/src/components/AudioPlayer/Player.tsx b/src/components/AudioPlayer/Player.tsx
index 0aa15b8..4271d76 100644
--- a/src/components/AudioPlayer/Player.tsx
+++ b/src/components/AudioPlayer/Player.tsx
@@ -177,7 +177,7 @@ export default function AudioPlayer({
}, []);
return (
-
+
{/* left */}
{/* 专辑封面 */}
@@ -191,60 +191,57 @@ export default function AudioPlayer({
{/* 歌曲信息 */}
-
+
{/*
*/}
{/* */}
-
{audio?.title ?? ''}
-
{`${audio?.artist}/${audio?.album}`}
+
{audio?.title ?? ''}
+
{`${audio?.artist}/${audio?.album}`}
{/*
*/}
{/* */}
-
- {/* center */}
-
- {/* 按钮 */}
-
-
handleSwitchAudio(-1)} />
-
- handleSwitchAudio(1)} />
-
-
- {/* 播放进度 */}
-
- {/* 播放时长 */}
-
- {secondToDate(trackProgress)}
-
-
- {/* 进度条 */}
-
handleChangeProgress(value)}
- />
-
- {/* 总时长 */}
-
- {secondToDate(duration || 0)}
-
-
+ {/* center */}
+
+ {/* 按钮 */}
+
+
handleSwitchAudio(-1)} />
+
+ handleSwitchAudio(1)} />
- {/* right */}
-
-
- {/* 收藏歌曲 */}
- {}
- {/* 播放顺序 */}
-
-
-
+ {/* 播放进度 */}
+
+ {/* 播放时长 */}
+
+ {secondToDate(trackProgress)}
+
+
+ {/* 进度条 */}
+
handleChangeProgress(value)}
+ className="w-710px"
+ />
+
+ {/* 总时长 */}
+ {secondToDate(duration || 0)}
+
+
+
+ {/* right */}
+
+
+ {/* 收藏歌曲 */}
+ {}
+ {/* 播放顺序 */}
+
+
diff --git a/src/components/AudioPlayer/PlayerBar.tsx b/src/components/AudioPlayer/PlayerBar.tsx
index 30b388a..3981966 100644
--- a/src/components/AudioPlayer/PlayerBar.tsx
+++ b/src/components/AudioPlayer/PlayerBar.tsx
@@ -59,7 +59,7 @@ const PlayerBar = ({ className }: { className?: string }) => {
{/* 播放器 */}
setShowCard(!showCard)} />
diff --git a/src/components/AudioPlayer/PlayerCard.tsx b/src/components/AudioPlayer/PlayerCard.tsx
index 19f1bc8..f2e78f4 100644
--- a/src/components/AudioPlayer/PlayerCard.tsx
+++ b/src/components/AudioPlayer/PlayerCard.tsx
@@ -82,7 +82,7 @@ export default function PlayerCard({ show, className }: Prop) {
>
-
+
{/* 单曲信息 */}
{/* 专辑封面区域 */}
@@ -134,7 +134,7 @@ export default function PlayerCard({ show, className }: Prop) {
{/* 歌词 */}
-
+
{lrc ? (
) : (
diff --git a/src/components/AudioPlayer/widget/index.module.css b/src/components/AudioPlayer/widget/index.module.css
index 3e8e20f..7832ea6 100644
--- a/src/components/AudioPlayer/widget/index.module.css
+++ b/src/components/AudioPlayer/widget/index.module.css
@@ -5,7 +5,6 @@
align-items: center;
user-select: none;
touch-action: none;
- width: 718px;
height: 11px;
cursor: pointer;
}