Skip to content

Commit

Permalink
fixed alignment: parameters left column text does not wrap around and…
Browse files Browse the repository at this point in the history
… bleeds to the right issue: processing#660
  • Loading branch information
akkarn1689 committed Jan 25, 2025
1 parent 290f709 commit bd684ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layouts/ReferenceItemLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ const seenParams: Record<string, true> = {};
<h2 class="mb-md text-h3">{t("Parameters")}</h2>
{entry.data.params &&
entry.data.params.map((param: ReferenceParam) => (
<div class="grid grid-cols-6 gap-gutter-md text-body">
<span class="col-span-1 text-body">{param.name}</span>
<div class="grid grid-cols-8 gap-gutter-md text-body">
<span class="col-span-2 text-body whitespace-normal break-words overflow-wrap-break-word">{param.name}</span>
<div
class="col-span-5 [&_p]:m-0 [&_p]:inline [&_a]:underline"
class="col-span-6 [&_p]:m-0 [&_p]:inline [&_a]:underline"
>
{param.type && <span>{param.type}: </span>}
<span set:html={param.description} />
Expand Down

0 comments on commit bd684ab

Please sign in to comment.