fix: adjust link formatting in ReleaseNoteListItem to prevent extra space from Prettier

This commit is contained in:
mr. m
2026-04-08 13:27:57 +02:00
parent fc749b2328
commit 150da70932
2 changed files with 12 additions and 6 deletions

View File

@@ -50,4 +50,8 @@ public/favicon.svg
.github/ISSUE_TEMPLATE/
.github/PULL_REQUEST_TEMPLATE/
CONTRIBUTING.md
README.md
README.md
# The ending ")" in the link is causing Prettier to format the code in a way that
# it adds an empty space between the link and the parentheses.
src/components/ReleaseNoteListItem.astro

View File

@@ -41,11 +41,13 @@ const {
{
link && (
<span>
(
<a href={link.href} class="text-blue inline-block text-base underline">
{link.text}
</a>
)
<>
{type === 'fix' && <span>{'('}</span>}
<a href={link.href} class="text-blue inline-block text-base underline">
{link.text}
{/* prettier-ignore */}
</a>{type === 'fix' && <span>{')'}</span>}
</>
</span>
)
}