diff --git a/www/index.html b/www/index.html index d21670b..d879164 100644 --- a/www/index.html +++ b/www/index.html @@ -21,7 +21,13 @@ }, 2000, ) - $watch('metadata.title', () => isTitleOverflow = $refs.scrollTitle.offsetWidth < $refs.scrollTitle.scrollWidth) + $watch('metadata.title', (value, oldValue) => { + if (value != oldValue){ + isTitleOverflow = false; // force a reset + return + } + isTitleOverflow = $refs.scrollTitle.offsetWidth < $refs.scrollTitle.scrollWidth + }) " >