@@ -33,7 +33,7 @@ def right_sidebar_item_highlight():
3333 function highlightTocLink() {
3434 // Get the current hash from the URL
3535 const currentHash = window.location.hash.substring(1);
36-
36+
3737 // Reset all links
3838 tocLinks.forEach(link => {
3939 link.classList.remove(activeClass);
@@ -81,7 +81,7 @@ def right_sidebar_item_highlight():
8181 entries.forEach(entry => {
8282 if (entry.isIntersecting) {
8383 const headerId = entry.target.id;
84-
84+
8585 // Find corresponding TOC link
8686 const correspondingLink = Array.from(tocLinks).find(link => {
8787 const linkHash = new URL(link.href).hash.substring(1);
@@ -104,7 +104,7 @@ def right_sidebar_item_highlight():
104104 }, observerOptions);
105105
106106 // Observe headers
107- const headerSelectors = Array.from(tocLinks).map(link =>
107+ const headerSelectors = Array.from(tocLinks).map(link =>
108108 new URL(link.href).hash.substring(1)
109109 );
110110
@@ -720,7 +720,7 @@ def wrapper(*args, **kwargs) -> rx.Component:
720720 if not pseudo_right_bar or show_right_sidebar
721721 else rx .el .div (class_name = "hidden" )
722722 ),
723- class_name = "grid justify-center mx-auto mt-0 max-w-[94.5em] h-full min-h-screen w-full "
723+ class_name = "grid justify-center mx-auto mt-0 max-w-[94.5em] h-full min-h-screen w-full lg:px-10 "
724724 + grid_cols_classes ,
725725 ),
726726 class_name = "flex flex-col justify-center bg-slate-1 w-full mx-auto" ,
0 commit comments