mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-30 12:07:22 +08:00
✨ feat: 调整迷你播放栏列表项高度,从52px更改为69px,以优化滚动体验
This commit is contained in:
@@ -253,7 +253,7 @@ const togglePlaylist = () => {
|
|||||||
const scrollToPlayList = () => {
|
const scrollToPlayList = () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const currentIndex = playerStore.playListIndex;
|
const currentIndex = playerStore.playListIndex;
|
||||||
const itemHeight = 52; // 每个列表项的高度
|
const itemHeight = 69; // 每个列表项的高度
|
||||||
palyListRef.value?.scrollTo({
|
palyListRef.value?.scrollTo({
|
||||||
top: currentIndex * itemHeight,
|
top: currentIndex * itemHeight,
|
||||||
behavior: 'smooth'
|
behavior: 'smooth'
|
||||||
|
|||||||
Reference in New Issue
Block a user