diff --git a/web-src/src/components/CoverArtwork.vue b/web-src/src/components/CoverArtwork.vue index d1e07c77..f63513e3 100644 --- a/web-src/src/components/CoverArtwork.vue +++ b/web-src/src/components/CoverArtwork.vue @@ -34,13 +34,7 @@ export default { }, caption() { - if (this.album) { - return this.album.substring(0, 2) - } - if (this.artist) { - return this.artist.substring(0, 2) - } - return '' + return (this.album || this.artist || '').substring(0, 2) } }, diff --git a/web-src/src/components/LyricsPane.vue b/web-src/src/components/LyricsPane.vue index 579f870c..b9258700 100644 --- a/web-src/src/components/LyricsPane.vue +++ b/web-src/src/components/LyricsPane.vue @@ -172,13 +172,13 @@ export default { } const currentVerse = pane.children[this.verse_index] pane.scrollBy({ + behavior: 'smooth', + left: 0, top: currentVerse.offsetTop - (pane.offsetHeight >> 1) + (currentVerse.offsetHeight >> 1) - - pane.scrollTop, - left: 0, - behavior: 'smooth' + pane.scrollTop }) } } diff --git a/web-src/src/components/NavbarTop.vue b/web-src/src/components/NavbarTop.vue index b7ad30fa..4674d187 100644 --- a/web-src/src/components/NavbarTop.vue +++ b/web-src/src/components/NavbarTop.vue @@ -6,28 +6,25 @@ aria-label="main navigation" >