tree view + dive fixes

This commit is contained in:
Henry Jameson 2026-09-16 14:39:30 +03:00
commit 4495223ef5
2 changed files with 3 additions and 3 deletions

View file

@ -314,8 +314,8 @@ export default {
return linearScrollTo(ids)
}
}
const diveIntoStatus = (id) => scrollTo(new Set([id]))
const diveToTopLevel = () => scrollTo(new Set([currentAncestors.value[0].id]))
const diveIntoStatus = (id) => setFocused(id)
const diveToTopLevel = () => setFocused(currentAncestors.value[0].id)
watch(focusedId, async (neu, old) => {
// Ignoring initial update (null -> id) since that is handled by scroll compensation

View file

@ -125,7 +125,7 @@
</template>
</div>
<ThreadTree
:status-id="currentStatus.id"
:status-id="focusedId ?? currentStatus.id"
:depth="0"
@goto="setFocused"