tree view + dive fixes
This commit is contained in:
parent
06596ee6c0
commit
4495223ef5
2 changed files with 3 additions and 3 deletions
|
|
@ -314,8 +314,8 @@ export default {
|
||||||
return linearScrollTo(ids)
|
return linearScrollTo(ids)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const diveIntoStatus = (id) => scrollTo(new Set([id]))
|
const diveIntoStatus = (id) => setFocused(id)
|
||||||
const diveToTopLevel = () => scrollTo(new Set([currentAncestors.value[0].id]))
|
const diveToTopLevel = () => setFocused(currentAncestors.value[0].id)
|
||||||
|
|
||||||
watch(focusedId, async (neu, old) => {
|
watch(focusedId, async (neu, old) => {
|
||||||
// Ignoring initial update (null -> id) since that is handled by scroll compensation
|
// Ignoring initial update (null -> id) since that is handled by scroll compensation
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<ThreadTree
|
<ThreadTree
|
||||||
:status-id="currentStatus.id"
|
:status-id="focusedId ?? currentStatus.id"
|
||||||
:depth="0"
|
:depth="0"
|
||||||
|
|
||||||
@goto="setFocused"
|
@goto="setFocused"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue