From 504d2742f4005960f44d57c7d0dc13dbdfd38346 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sat, 20 May 2023 15:50:57 -0700 Subject: [PATCH] post-list
  • a11y improvements --- src/app/components/post-list/list-item.tsx | 158 ++++++++++----------- 1 file changed, 78 insertions(+), 80 deletions(-) diff --git a/src/app/components/post-list/list-item.tsx b/src/app/components/post-list/list-item.tsx index 6d7847e2..c67a7f06 100644 --- a/src/app/components/post-list/list-item.tsx +++ b/src/app/components/post-list/list-item.tsx @@ -66,91 +66,89 @@ const ListItem = ({ } return ( - -
  • - - <> -
    - -

    - - {post.title} - -

    -
    - - - {post.files?.length === 1 - ? "1 file" - : `${post.files?.length || 0} files`} - - - -
    -
    - {!hideActions ? ( - - {post.parentId && ( - -
    + )} + +
  • + {post.description && ( +

    {post.description}

    + )} + + + ) }