Move indent calc to metadata, add ui field to readMore, use indent

This commit is contained in:
Eric Bailey
2025-10-14 15:08:33 -05:00
parent df9c289f55
commit c428568b0c
5 changed files with 31 additions and 9 deletions
@@ -28,7 +28,8 @@ export const ThreadItemReadMore = memo(function ThreadItemReadMore({
const t = useTheme()
const {_} = useLingui()
const isTreeView = view === 'tree'
const indent = Math.max(0, item.depth - 1)
const indent = Math.max(0, item.ui.indent - 1)
console.log({indent, id: item.ui.indent})
const spacers = isTreeView
? Array.from(Array(indent)).map((_, n: number) => {