Fix marker in chat

This commit is contained in:
Jon Staab
2025-02-06 11:39:51 -08:00
parent 19f657e348
commit 466541caf5
3 changed files with 6 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
* Make reply indicator nicer * Make reply indicator nicer
* Make share indicator nicer * Make share indicator nicer
* Improve feed loading * Improve feed loading
* (pending) Show marker for last activity in chat * Show marker for last activity in chat
# 0.2.6 # 0.2.6

View File

@@ -115,8 +115,6 @@
const hasEllipsis = $derived(shortContent.some(isEllipsis)) const hasEllipsis = $derived(shortContent.some(isEllipsis))
const expandInline = $derived(hasEllipsis && expandMode === "inline") const expandInline = $derived(hasEllipsis && expandMode === "inline")
const expandBlock = $derived(hasEllipsis && expandMode === "block") const expandBlock = $derived(hasEllipsis && expandMode === "block")
$inspect(fullContent)
</script> </script>
<div class="relative"> <div class="relative">

View File

@@ -202,8 +202,12 @@
}) })
onDestroy(() => { onDestroy(() => {
setChecked($page.url.pathname)
cleanup() cleanup()
// Sveltekit calls onDestroy at the beginning of the page load for some reason
setTimeout(() => {
setChecked($page.url.pathname)
}, 300)
}) })
</script> </script>