From f1b69a332a0bad8d501490d43be3c302468db0c8 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 4 Dec 2023 16:25:17 -0800 Subject: Tune treeview thread mode to have consistent spacing (#2078) --- src/view/com/post-thread/PostThreadItem.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 63119eedf..86ea4eb39 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -417,7 +417,7 @@ let PostThreadItemLoaded = ({ ) } else { - const isThreadedChild = treeView && depth > 1 + const isThreadedChild = treeView && depth > 0 return ( 1) { + if (treeView && depth > 0) { return ( {Array.from(Array(depth - 1)).map((_, n: number) => ( @@ -614,8 +614,8 @@ function PostOuterWrapper({ style={{ borderLeftWidth: 2, borderLeftColor: pal.colors.border, - marginLeft: n === 0 ? 14 : isMobile ? 6 : 14, - paddingLeft: n === 0 ? 18 : isMobile ? 6 : 12, + marginLeft: isMobile ? 6 : 14, + paddingLeft: isMobile ? 6 : 12, }} /> ))} -- cgit 1.4.1