@@ -899,7 +899,7 @@ def wrapper(*args, **kwargs) -> rx.Component:
899899 rx .el .li (
900900 rx .el .a (
901901 text ,
902- class_name = "text-sm font-[525] text-m-slate-7 dark:text-m-slate-6 pl-4 py-1 block hover:text-m-slate-9 dark:hover:text-m-slate-5 transition-colors truncate " ,
902+ class_name = "text-sm font-[525] text-m-slate-7 dark:text-m-slate-6 pl-4 py-1 hover:text-m-slate-9 dark:hover:text-m-slate-5 transition-colors line-clamp-2 " ,
903903 href = path
904904 + "#"
905905 + text .lower ().replace (" " , "-" ),
@@ -910,7 +910,7 @@ def wrapper(*args, **kwargs) -> rx.Component:
910910 rx .el .li (
911911 rx .el .a (
912912 text ,
913- class_name = "text-sm font-[525] text-m-slate-7 dark:text-m-slate-6 pl-4 py-1 block hover:text-m-slate-9 dark:hover:text-m-slate-5 transition-colors truncate " ,
913+ class_name = "text-sm font-[525] text-m-slate-7 dark:text-m-slate-6 pl-4 py-1 hover:text-m-slate-9 dark:hover:text-m-slate-5 transition-colors line-clamp-2 " ,
914914 href = path
915915 + "#"
916916 + text .lower ().replace (
@@ -922,7 +922,7 @@ def wrapper(*args, **kwargs) -> rx.Component:
922922 else rx .el .li (
923923 rx .el .a (
924924 text ,
925- class_name = "text-sm font-[525] text-m-slate-7 dark:text-m-slate-6 pl-8 py-1 block hover:text-m-slate-9 dark:hover:text-m-slate-5 transition-colors truncate " ,
925+ class_name = "text-sm font-[525] text-m-slate-7 dark:text-m-slate-6 pl-8 py-1 hover:text-m-slate-9 dark:hover:text-m-slate-5 transition-colors line-clamp-2 " ,
926926 href = path
927927 + "#"
928928 + text .lower ().replace (
@@ -935,7 +935,7 @@ def wrapper(*args, **kwargs) -> rx.Component:
935935 for level , text in toc
936936 ],
937937 id = "toc-navigation" ,
938- class_name = "flex flex-col gap-y-1 list-none shadow-[1.5px_0_0_0_var(--m-slate-4)_inset] dark:shadow-[1.5px_0_0_0_var(--m-slate-9)_inset] max-h-[80vh] " ,
938+ class_name = "flex flex-col gap-y-1 list-none shadow-[1.5px_0_0_0_var(--m-slate-4)_inset] dark:shadow-[1.5px_0_0_0_var(--m-slate-9)_inset] max-h-[60vh] overflow-y-auto scroll-mask-y-10 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden " ,
939939 ),
940940 rx .el .div (
941941 feedback_button_toc (),
0 commit comments