mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
style fix and fmt
+ update deps
This commit is contained in:
parent
ab9ebbced0
commit
a64217ed4d
5 changed files with 284 additions and 242 deletions
|
@ -198,6 +198,12 @@ body {
|
|||
height: 0.75rem;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 1px 6px;
|
||||
border: none;
|
||||
|
|
|
@ -185,8 +185,12 @@ onMounted(() => {
|
|||
document.title = document.title.replace(titleState[0], titleState[1]);
|
||||
});
|
||||
|
||||
navigator.mediaSession.setActionHandler('previoustrack', () => data.prevTrack());
|
||||
navigator.mediaSession.setActionHandler('nexttrack', () => data.nextTrack());
|
||||
navigator.mediaSession.setActionHandler('previoustrack', () =>
|
||||
data.prevTrack(),
|
||||
);
|
||||
navigator.mediaSession.setActionHandler('nexttrack', () =>
|
||||
data.nextTrack(),
|
||||
);
|
||||
|
||||
navigator.mediaSession.setActionHandler('seekbackward', () => {
|
||||
audio.value.currentTime -= 10;
|
||||
|
|
|
@ -26,7 +26,7 @@ onMounted(() => {
|
|||
animation: 150,
|
||||
onUpdate: ({ oldIndex, newIndex }) => {
|
||||
const { urls } = data.state;
|
||||
urls.splice(newIndex-1, 0, urls.splice(oldIndex-1, 1)[0]);
|
||||
urls.splice(newIndex - 1, 0, urls.splice(oldIndex - 1, 1)[0]);
|
||||
data.state.urls = urls;
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue