Skip to content

Commit

Permalink
fix: properly support multiple extends/implements (#9934)
Browse files Browse the repository at this point in the history
* fix: properly support multiple extends/implements

* refactor: use flexbox instead of space util

Co-authored-by: Noel <buechler.noel@outlook.com>

---------

Co-authored-by: Noel <buechler.noel@outlook.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Nov 10, 2023
1 parent ff24bc5 commit d28814d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions apps/website/src/components/documentation/HierarchyText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ export function HierarchyText({
}

return (
<div className="flex flex-row place-items-center gap-4">
<h3 className="text-xl font-bold">{type}</h3>
<span className="break-all font-mono space-y-2">
{excerpts.map((excerpt, idx) => (
<ExcerptText excerpt={excerpt} key={idx} model={model} />
))}
</span>
<div className="flex flex-col gap-4">
{excerpts.map((excerpt, idx) => (
<div className="flex flex-row place-items-center gap-4" key={`${type}-${idx}`}>
<h3 className="text-xl font-bold">{type}</h3>
<span className="break-all font-mono space-y-2">
<ExcerptText excerpt={excerpt} model={model} />
</span>
</div>
))}
</div>
);
}

0 comments on commit d28814d

Please sign in to comment.