Skip to content

Commit

Permalink
Fix line break of Property component on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-hiller committed Jan 2, 2025
1 parent a66d48e commit da73215
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions website/src/components/Property.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,12 @@ const Definition = component$<DefinitionProps>(({ parent, data }) => (
<>
{'<'}
{data.generics.map((generic, index) => (
<Fragment key={index}>
{index > 0 && ', '}
<span key={index} class="inline-block">
<Definition parent={data.type} data={generic} />
</Fragment>
{index < data.generics!.length - 1 && (
<span class="whitespace-pre">, </span>
)}
</span>
))}
{'>'}
</>
Expand Down

0 comments on commit da73215

Please sign in to comment.