Fixed play next and play later on mediaitem-list-item
This commit is contained in:
parent
e78171b5a0
commit
56a5252413
2 changed files with 14 additions and 2 deletions
|
@ -2391,6 +2391,16 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
|||
transform: scale(0.5);
|
||||
}
|
||||
|
||||
.drawertransition-enter-active,
|
||||
.drawertransition-leave-active {
|
||||
transition: margin-right .25s var(--appleEase);
|
||||
}
|
||||
|
||||
.drawertransition-enter,
|
||||
.drawertransition-leave-to {
|
||||
margin-right: -300px;
|
||||
}
|
||||
|
||||
/* Transitions End */
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
|
|
|
@ -87,13 +87,15 @@
|
|||
{
|
||||
"name": "Play Next",
|
||||
"action": function() {
|
||||
app.mk.queue.splice(0,0,[new MusicKit.MediaItem(self.item)])
|
||||
app.mk.playNext({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
|
||||
app.mk.queue._reindex()
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Play Later",
|
||||
"action": function() {
|
||||
app.mk.queue.append([new MusicKit.MediaItem(self.item)])
|
||||
app.mk.playLater({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
|
||||
app.mk.queue._reindex()
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue