@@ -20,16 +20,16 @@ import { useTranslation } from "@/hooks/useTranslation"
20
20
import { usePathname } from "@/i18n/routing"
21
21
22
22
const variants = cva (
23
- "sticky top-28 flex h-fit max-lg:hidden flex-col items-start overflow-y-auto" ,
23
+ "sticky flex h-fit max-lg:hidden flex-col items-start overflow-y-auto" ,
24
24
{
25
25
variants : {
26
26
variant : {
27
- docs : "top-20 min-w-48 max-w-[25%] p-4 pe-0 gap-4" ,
27
+ docs : "top-19 min-w-48 max-w-[25%] p-4 pe-0 gap-4" ,
28
28
beginner : cn (
29
- "min-w-80 max-w-72 lg:p-8 px-3 py-2" ,
29
+ "top-28 min-w-80 max-w-72 lg:p-8 px-3 py-2" ,
30
30
"shrink-0 gap-y-2.5 rounded-2xl bg-accent-a/10 text-body-medium"
31
31
) ,
32
- left : "me-16 ms-8 basis-[400px] [&_ul]:leading-relaxed" ,
32
+ left : "top-28 me-16 ms-8 basis-[400px] [&_ul]:leading-relaxed" ,
33
33
} ,
34
34
} ,
35
35
defaultVariants : {
@@ -54,7 +54,7 @@ const labelVariants = cva("font-bold", {
54
54
const listVariants = cva ( "mx-0 gap-2 py-0" , {
55
55
variants : {
56
56
variant : {
57
- docs : "list-none border-s border-s-body-medium ps-4 my-2" ,
57
+ docs : "list-none border-s border-s-body-medium ps-4 my-2 text-sm " ,
58
58
beginner : "list-decimal border-s-0 text-base list-inside ps-0 my-2" ,
59
59
left : "list-none my-0" ,
60
60
} ,
@@ -129,7 +129,7 @@ const TableOfContents = ({
129
129
</ ButtonLink >
130
130
) }
131
131
{ variant === "left" && showDropdown && dropdownLinks && (
132
- < div className = "relative mb-8 flex items-end justify-end" >
132
+ < div className = "relative mb-8 flex w-full items-end justify-end" >
133
133
< ButtonDropdown
134
134
list = { dropdownLinks }
135
135
className = "w-full min-w-[240px]"
0 commit comments