Fix up traversal metadata

This commit is contained in:
Eric Bailey
2025-05-27 20:50:04 -05:00
parent e5cc0c0ed2
commit 1f73c05195
5 changed files with 58 additions and 27 deletions
@@ -4,7 +4,7 @@ import {useLingui} from '@lingui/react'
import {makeProfileLink} from '#/lib/routes/links'
import {type PostThreadParams, type Slice} from '#/state/queries/usePostThread'
import {TREE_AVI_WIDTH,TREE_INDENT} from '#/screens/PostThread/const'
import {TREE_AVI_WIDTH, TREE_INDENT} from '#/screens/PostThread/const'
import {atoms as a, useTheme} from '#/alf'
import {CirclePlus_Stroke2_Corner0_Rounded as CirclePlus} from '#/components/icons/CirclePlus'
import {Link} from '#/components/Link'
@@ -20,7 +20,7 @@ export function ReadMore({
const t = useTheme()
const {_} = useLingui()
const isTreeView = view === 'tree'
const indentCount = item.indent - 1
const indentCount = Math.max(0, item.indent - 1)
const treeIndents = isTreeView ? (
Array.from(Array(indentCount)).map((_, n: number) => (