Merge branch 'ciderapp:upcoming' into upcoming

This commit is contained in:
Maikiwi 2022-01-24 23:50:23 -08:00 committed by GitHub
commit 9c70cb8211
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 44 additions and 29 deletions

View file

@ -3397,9 +3397,19 @@ const app = new Vue({
this.webremoteurl = await ipcRenderer.invoke('showQR','')
//this.modals.qrcode = true;
},
checkMarquee() {
if(isElementOverflowing('#app-main > div.app-chrome > div.app-chrome--center > div > div > div.playback-info > div.song-artist') == true) {
document.getElementsByClassName('song-artist')[0].classList.add('marquee');
document.getElementsByClassName('song-artist')[1].classList.add('marquee-after');
}
if(isElementOverflowing('#app-main > div.app-chrome > div.app-chrome--center > div > div > div.playback-info > div.song-name') == true) {
document.getElementsByClassName('song-name')[0].classList.add('marquee');
document.getElementsByClassName('song-name')[1].classList.add('marquee-after');
}
}
}
}
})
Vue.component('animated-number', {
@ -3688,4 +3698,4 @@ document.addEventListener('keydown', function(event) {
ipcRenderer.send('detachDT','')
} catch (e) { }
}
});
});