Skip to content

Commit 747ddad

Browse files
committed
chore: Run formatter
1 parent 4fcf80a commit 747ddad

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/setup-node@v4
1616
with:
1717
node-version: "20.x"
18-
18+
1919
- name: Check Formatting
2020
run: |
2121
npm ci --ignore-scripts

src/components/DocsSwitchPageLink.astro

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,22 @@ const chevronClass = "mb-0.5 h-3 text-color-dim inline-block";
1313
const { entry, isPrev } = Astro.props;
1414
---
1515

16-
{entry ? (
17-
<a href={`/docs/${entry.id}`} class="no-underline text-sm md:text-base">
18-
{isPrev ? (
19-
<ChevronRightIcon class={`${chevronClass} rotate-180`} />
20-
<b class={textClass}>{entry.data.title}</b>
21-
) : (
22-
<b class={textClass}>{entry.data.title}</b>
23-
<ChevronRightIcon class={chevronClass} />
24-
)}
25-
</a>
26-
) : (
27-
<div></div>
28-
)}
16+
{
17+
entry ? (
18+
<a href={`/docs/${entry.id}`} class="no-underline text-sm md:text-base">
19+
{isPrev ? (
20+
<>
21+
<ChevronRightIcon class={`${chevronClass} rotate-180`} />
22+
<b class={textClass}>{entry.data.title}</b>
23+
</>
24+
) : (
25+
<>
26+
<b class={textClass}>{entry.data.title}</b>
27+
<ChevronRightIcon class={chevronClass} />
28+
</>
29+
)}
30+
</a>
31+
) : (
32+
<div />
33+
)
34+
}

0 commit comments

Comments
 (0)