mirror of
https://github.com/zen-browser/www
synced 2026-04-25 17:14:56 +02:00
fix: adjust link formatting in ReleaseNoteListItem to prevent extra space from Prettier
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user