调整音乐列表最大高度

This commit is contained in:
XiaoZhuo 2023-10-04 01:03:20 +08:00
parent 91d56f7f29
commit 6b6dd495ce

View File

@ -39,6 +39,10 @@ export default class MusicList {
// 写入 css 样式到 head
const style = document.createElement('style')
style.innerText = `
ul.music-list {
max-height: 70vh;
overflow-y: auto;
}
ul.music-list > li > span {
cursor: pointer;
}
@ -66,7 +70,7 @@ export default class MusicList {
ul.music-list > li > button:hover {
background-color: #ccc;
}
`
`
document.head.appendChild(style)
document.body.appendChild(input)
}