Skip to content

Commit

Permalink
chore: Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
spotandjake committed Jan 28, 2025
1 parent 4fcf80a commit 747ddad
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: Check Formatting
run: |
npm ci --ignore-scripts
Expand Down
32 changes: 19 additions & 13 deletions src/components/DocsSwitchPageLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,22 @@ const chevronClass = "mb-0.5 h-3 text-color-dim inline-block";
const { entry, isPrev } = Astro.props;
---

{entry ? (
<a href={`/docs/${entry.id}`} class="no-underline text-sm md:text-base">
{isPrev ? (
<ChevronRightIcon class={`${chevronClass} rotate-180`} />
<b class={textClass}>{entry.data.title}</b>
) : (
<b class={textClass}>{entry.data.title}</b>
<ChevronRightIcon class={chevronClass} />
)}
</a>
) : (
<div></div>
)}
{
entry ? (
<a href={`/docs/${entry.id}`} class="no-underline text-sm md:text-base">
{isPrev ? (
<>
<ChevronRightIcon class={`${chevronClass} rotate-180`} />
<b class={textClass}>{entry.data.title}</b>
</>
) : (
<>
<b class={textClass}>{entry.data.title}</b>
<ChevronRightIcon class={chevronClass} />
</>
)}
</a>
) : (
<div />
)
}

0 comments on commit 747ddad

Please sign in to comment.