Skip to content

Commit 93223ac

Browse files
committed
Show type in parameters
1 parent 20a6a93 commit 93223ac

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/layouts/ReferenceItemLayout.astro

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ const seenParams: Record<string, true> = {};
143143
return (
144144
<div class="grid grid-cols-6 gap-[40px] text-body">
145145
<h4 class="col-span-1">{param.name}</h4>
146-
<span
147-
class="col-span-5 [&_p]:m-0 [&_a]:underline"
148-
set:html={param.description}
149-
/>
146+
<div
147+
class="col-span-5 [&_p]:m-0 [&_p]:inline [&_a]:underline"
148+
>
149+
{param.type && <span>{param.type}: </span>}
150+
<span set:html={param.description} />
151+
</div>
150152
</div>
151153
)
152154
})

0 commit comments

Comments
 (0)