File tree 4 files changed +8
-50
lines changed
4 files changed +8
-50
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
---
2
+ import { getCollection } from ' astro:content' ;
3
+
2
4
import { cn } from ' @/utils' ;
3
5
import { SocialLinks } from ' @/docs.config' ;
4
6
@@ -26,7 +28,7 @@ import SearchModal from '@/components/search/searchModal';
26
28
class =" group flex items-center space-x-3 font-medium tracking-tight transition-opacity duration-75 hover:opacity-80"
27
29
>
28
30
<Logo width ={ 22 } className =" group-hover:animate-pulse" />
29
- <span class =" text-neutral-700 dark:text-neutral-300" >
31
+ <span class =" hidden md:block text-neutral-700 dark:text-neutral-300" >
30
32
pheralb/toast
31
33
</span >
32
34
</a >
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ const currentPath = Astro.url.pathname;
28
28
title = { r .title }
29
29
class = { cn (
30
30
' px-4 py-2 text-sm' ,
31
- ' border-l border-neutral-200 dark:border-neutral-800' ,
31
+ ' border-l border-neutral-200 dark:border-neutral-800 hover:border-neutral-800 dark:hover:border-neutral-200' ,
32
+ ' transition-colors' ,
32
33
' text-neutral-600 hover:text-black dark:text-neutral-400 dark:hover:text-white' ,
33
34
currentPath .replace (/ \/ $ / , ' ' ) === r .path .replace (/ \/ $ / , ' ' )
34
35
? ' border-black font-medium text-black dark:border-white dark:text-white'
Original file line number Diff line number Diff line change 1
1
---
2
2
import type { MarkdownHeading } from ' astro' ;
3
3
import { cn } from ' @/utils' ;
4
- import { TableOfContents , TableOfContentsIcon } from ' lucide-react' ;
5
4
6
5
type Props = {
7
6
headings: MarkdownHeading [];
@@ -13,16 +12,17 @@ const { headings } = Astro.props;
13
12
<aside
14
13
class ={ cn (
15
14
' py-4' ,
16
- ' fixed z-30 hidden h-[calc(100vh-4rem)] w-[150px] shrink-0 overflow-y-auto text-sm xl:block' ,
15
+ ' fixed z-30 hidden h-[calc(100vh-4rem)] w-[150px] overflow-y-hidden text-sm xl:block' ,
17
16
' bg-neutral-50 dark:bg-neutral-900' ,
18
17
' flex items-end justify-end' ,
18
+ ' border-none' ,
19
19
)}
20
20
>
21
21
<div class =" flex flex-col py-5" >
22
22
<h2 class =" mb-2 text-sm text-neutral-600 dark:text-neutral-400" >
23
23
On this page
24
24
</h2 >
25
- <ul class =" flex flex-col" >
25
+ <ul class =" flex flex-col overflow-y-auto " >
26
26
{
27
27
headings .map ((heading ) => (
28
28
<a
@@ -31,7 +31,6 @@ const { headings } = Astro.props;
31
31
class = { cn (
32
32
' px-4 py-2 text-sm' ,
33
33
' border-l border-neutral-200 dark:border-neutral-800 hover:border-neutral-800 dark:hover:border-neutral-200' ,
34
- ' transition-colors' ,
35
34
' text-neutral-600 hover:text-black dark:text-neutral-400 dark:hover:text-white' ,
36
35
' bg-transparent' ,
37
36
)}
You can’t perform that action at this time.
0 commit comments