From 7dea6c9ccabbb7fe56ef65799f4dfdaad3fac013 Mon Sep 17 00:00:00 2001 From: Brendan Schlagel Date: Fri, 13 Mar 2026 16:12:49 -0400 Subject: [PATCH] adjust margin for ordered list items in rendered PostContent --- .../[publication]/[rkey]/PostContent.tsx | 101 ++++++++++-------- 1 file changed, 58 insertions(+), 43 deletions(-) diff --git a/app/lish/[did]/[publication]/[rkey]/PostContent.tsx b/app/lish/[did]/[publication]/[rkey]/PostContent.tsx index 44394231..a06b392a 100644 --- a/app/lish/[did]/[publication]/[rkey]/PostContent.tsx +++ b/app/lish/[did]/[publication]/[rkey]/PostContent.tsx @@ -393,7 +393,11 @@ export let Block = ({ case PubLeafletBlocksHeader.isMain(b.block): { if (b.block.level === 1) return ( -

+

+

+

{b.block.plaintext}

; // if (b.block.level === 5) return
{b.block.plaintext}
; return ( -
+
) : null; - let orderedChildren = - props.item.orderedListChildren?.children?.length ? ( -
    - {props.item.orderedListChildren.children.map((child, index) => ( - - ))} -
- ) : null; + let orderedChildren = props.item.orderedListChildren?.children?.length ? ( +
    + {props.item.orderedListChildren.children.map((child, index) => ( + + ))} +
+ ) : null; return (
  • {props.item.children.map((child, index) => ( @@ -544,27 +560,26 @@ function OrderedListItem(props: { ))} ) : null; - let unorderedChildren = - props.item.unorderedListChildren?.children?.length ? ( -
      - {props.item.unorderedListChildren.children.map((child, index) => ( - - ))} -
    - ) : null; + let unorderedChildren = props.item.unorderedListChildren?.children?.length ? ( +
      + {props.item.unorderedListChildren.children.map((child, index) => ( + + ))} +
    + ) : null; return (
  • -
    +
    {calculatedIndex}.
    -- 2.51.2