From cdb1436457e4ef7c0075409532b701e5916c9e43 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Tue, 20 Jan 2026 14:15:54 +0100 Subject: [PATCH] [dyad] Fixed missing borders in headline tree - wrote 1 file(s) --- src/components/headline-tree.tsx | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/components/headline-tree.tsx b/src/components/headline-tree.tsx index cbc585c..2295ddf 100644 --- a/src/components/headline-tree.tsx +++ b/src/components/headline-tree.tsx @@ -2,7 +2,6 @@ import { Badge } from "@/components/ui/badge"; import type { HeadlineNode } from "@/app/actions"; -import { cn } from "@/lib/utils"; interface HeadlineTreeProps { headlines: HeadlineNode[]; @@ -16,9 +15,9 @@ const HeadlineNodeDisplay = ({ level: number; }) => { return ( -
+ <>
- {node.children && node.children.length > 0 && ( -
- {node.children.map((child, index) => ( - - ))} -
- )} -
+ {node.children?.map((child, index) => ( + + ))} + ); }; export function HeadlineTree({ headlines }: HeadlineTreeProps) { return (
- {headlines.map((headline, index) => ( - - ))} +
+ {headlines.map((headline, index) => ( + + ))} +
); } \ No newline at end of file