Skip to content

Commit c242a33

Browse files
committed
patch sidebar
1 parent eedf5e5 commit c242a33

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pcweb/templates/docpage/docpage.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,10 +619,11 @@ def wrapper(*args, **kwargs) -> rx.Component:
619619
return rx.box(
620620
navbar(),
621621
rx.el.main(
622+
622623
rx.box(
623624
sidebar,
624625
class_name=(
625-
"w-[300px] h-screen sticky top-0 shrink-0 hidden lg:block"
626+
"w-full max-w-[300px] h-screen shrink-0 hidden lg:block z-10 "
626627
+ rx.cond(
627628
HostingBannerState.show_banner,
628629
" mt-[146px]",
@@ -652,9 +653,9 @@ def wrapper(*args, **kwargs) -> rx.Component:
652653
docpage_footer(path=path.rstrip("/")),
653654
class_name="lg:mt-0 mt-6 px-4 xl:px-10 h-auto bg-slate-1",
654655
),
655-
# class_name="flex-1 bg-slate-1 h-auto mx-auto max-w-4xl overflow-y-auto" # <-keep for future ref...
656-
class_name="flex-1 bg-slate-1 h-auto mx-auto overflow-y-auto "
657-
+ "max-w-4xl" if show_right_sidebar and not pseudo_right_bar else "!max-w-7xl",
656+
class_name="flex-1 bg-slate-1 h-auto mx-auto max-w-4xl overflow-y-auto"
657+
# class_name="flex-1 bg-slate-1 h-auto mx-auto overflow-y-auto "
658+
# + "max-w-4xl" if show_right_sidebar and not pseudo_right_bar else "!max-w-7xl",
658659
),
659660
rx.box(
660661
rx.el.nav(
@@ -718,7 +719,7 @@ def wrapper(*args, **kwargs) -> rx.Component:
718719

719720
class_name="flex justify-center mx-auto mt-0 max-w-[94.5em] h-full min-h-screen w-full lg:px-10",
720721
),
721-
class_name="flex flex-col justify-center bg-slate-1 w-full",
722+
class_name="flex flex-col justify-center bg-slate-1 w-full relative",
722723
on_mount=rx.call_script(right_sidebar_item_highlight()),
723724
)
724725

0 commit comments

Comments
 (0)