diff --git a/www/index.html b/www/index.html
index d879164..4fb3870 100644
--- a/www/index.html
+++ b/www/index.html
@@ -17,15 +17,18 @@
}"
x-init="setInterval(
async () => {
- metadata = await get_metadata()
+ metadata = await getMetadata()
},
2000,
)
- $watch('metadata.title', (value, oldValue) => {
- if (value != oldValue){
- isTitleOverflow = false; // force a reset
+ $watch('metadata.title', async (value, oldValue) => {
+ if (value == oldValue){
return
}
+ // First, reset overflow for proper recalculation
+ isTitleOverflow = false
+ await $nextTick()
+ // Now check for overflow
isTitleOverflow = $refs.scrollTitle.offsetWidth < $refs.scrollTitle.scrollWidth
})
"
@@ -63,7 +66,7 @@