Original formatting retained

This commit is contained in:
banaanihillo@protonmail.ch 2024-04-20 12:01:09 +03:00
parent 1ae369b525
commit 7975ba8c96
2 changed files with 2 additions and 9 deletions

View file

@ -136,8 +136,7 @@ const openSong = el => {
class="bi bi-three-dots-vertical popup-wrap ign" class="bi bi-three-dots-vertical popup-wrap ign"
@mouseenter="show = true" @mouseenter="show = true"
@mouseleave="show = false" @mouseleave="show = false"
@click.enter="show = player.toggle('tooltipIsOpen')" @click.enter="show = player.toggle('tooltipIsOpen')">
>
<Transition name="fade"> <Transition name="fade">
<div v-if="show" class="popup ign"> <div v-if="show" class="popup ign">
<button <button

View file

@ -17,7 +17,6 @@ export const useData = defineStore('data', () => {
lyrics: '', lyrics: '',
src: [], src: [],
urls: [], urls: [],
tooltipIsOpen: false,
}), }),
player = usePlayer(); player = usePlayer();
@ -153,12 +152,7 @@ export const usePlayer = defineStore('player', () => {
}); });
function toggle(i) { function toggle(i) {
console.log(i) if (typeof state[i] == 'boolean') state[i] = !state[i];
console.log(state[i])
if (typeof state[i] == 'boolean') {
console.log(state[i])
return state[i] = !state[i]
}
} }
function setTime(t) { function setTime(t) {