From 8239a21c43616304b31b7735b8b6b04d93ae372b Mon Sep 17 00:00:00 2001 From: Sli Date: Fri, 23 Jan 2026 01:57:34 +0100 Subject: [PATCH] Hopefully fix overflow not being updated properly once it overflows once --- www/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 + }) " >