Skip to content

Commit

Permalink
chore: remove unused element
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Nov 26, 2024
1 parent e6e66f1 commit 1749219
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/components/Sidebar/Sidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,22 @@ if (sidebarMode === "guides") {

{
headings && headings.length > 0 && (
<aside>
<select
class="select select-sm max-w-40"
onchange="window.location.href = this.value">
{headings?.map((heading) => (
<option
value={`#${heading.slug}`}
class={cn({
"lg:text-xl lg:font-semibold":
heading.depth === 1,
"lg:text-lg": heading.depth === 2,
"lg:text-base": heading.depth >= 3,
})}>
{heading.text}
</option>
))}
</select>
</aside>
<select
class="select select-sm max-w-40"
onchange="window.location.href = this.value">
{headings?.map((heading) => (
<option
value={`#${heading.slug}`}
class={cn({
"lg:text-xl lg:font-semibold":
heading.depth === 1,
"lg:text-lg": heading.depth === 2,
"lg:text-base": heading.depth >= 3,
})}>
{heading.text}
</option>
))}
</select>
)
}

Expand Down

0 comments on commit 1749219

Please sign in to comment.