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; }