fix: adjust the spacings for vulnerabilities page and make "View the security advisory" links italic

This commit is contained in:
Dorian Niemiec 2024-09-08 07:47:40 +02:00
parent f8a7e9f791
commit dacff08ede

View file

@ -77,18 +77,18 @@ const Vulnerabilities = async () => {
{reversedDownloads.map((download) => (
<div
key={download._id}
className="flex-start flex-col prose dark:prose-invert gap-4"
className="flex-start flex-col prose max-w-full md:prose-lg dark:prose-invert gap-2"
>
<h2 className="font-semibold text-3xl -mb-2">{download.version}</h2>
<ul className="list-disc pl-5">
<h2 className="mb-0 md:mb-0">{download.version}</h2>
<ul>
{(download.bullets ?? []).map((bullet, index) => (
<li key={index}>
{bullet.point}
{bullet.securityAdvisoryUrl ? (
<>
{" "}
<Link href={bullet.securityAdvisoryUrl}>
View security advisory
<Link href={bullet.securityAdvisoryUrl} className="italic">
View the security advisory
</Link>
</>
) : (