Skip to content

Commit 4486c6d

Browse files
committed
Refactor references list to use divs instead of ul/li
Replaces the unordered list and list items with div containers for displaying references. This change improves layout flexibility and spacing by using 'space-y-3' and 'block' classes.
1 parent 19dfa5b commit 4486c6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/trainings/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,25 @@ function SubButtons({ section }: { section: Section }) {
8888
{entry.related && entry.related.length > 0 && (
8989
<div className="mt-6">
9090
<h3 className="text-lg font-medium">References</h3>
91-
<ul className="mt-3 list-disc list-inside">
91+
<div className="mt-3 space-y-3">
9292
{entry.related.map((r, i) => (
93-
<li key={i} className="my-2">
93+
<div key={i} className="my-0">
9494
{r.useButton && r.isFile ? (
9595
<DownloadButton href={r.href} label={r.label} />
9696
) : (
9797
<a
9898
href={r.href}
9999
target="_blank"
100100
rel="noopener noreferrer"
101-
className="text-purple-700 hover:underline"
101+
className="text-purple-700 hover:underline block"
102102
{...(r.isFile ? { download: '' } : {})}
103103
>
104104
{r.label}
105105
</a>
106106
)}
107-
</li>
107+
</div>
108108
))}
109-
</ul>
109+
</div>
110110
</div>
111111
)}
112112
</article>

0 commit comments

Comments
 (0)