Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
steve8708 committed May 4, 2024
1 parent e4826c1 commit dc79414
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/docs/src/routes/docs/right-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const RightSidebar = component$((props: { class: ClassList }) => {
const rect = el.getBoundingClientRect();
return rect.top >= 150;
});
console.log('activeIndex', activeIndex);

activeHeadingIndex.value =
activeIndex > 0 ? activeIndex - 1 : activeIndex === -1 ? contentHeadings.length - 1 : 0;
Expand All @@ -51,7 +50,7 @@ export const RightSidebar = component$((props: { class: ClassList }) => {
icon: TbMessage,
},
{
href: 'https://qwik.dev/chat',
href: 'https://discord.com/invite/SNusEyNGsx',
text: 'Join our community',
icon: TbBrandDiscord,
},
Expand All @@ -73,7 +72,7 @@ export const RightSidebar = component$((props: { class: ClassList }) => {
<a
href={`#${h.id}`}
class={[
'block my-4 text-[rgba(255,255,255,10)] hover:opacity-100 hover:text-primary-light transition-colors duration-200 ease-in-out',
'block my-4 text-[rgba(255,255,255,0.7)] hover:opacity-100 hover:text-primary-light transition-colors duration-200 ease-in-out',
`${h.level > 2 ? 'ml-4' : null}`,
activeHeadingIndex.value === i ? '!text-primary-light' : null,
]}
Expand Down

0 comments on commit dc79414

Please sign in to comment.