Skip to content

Commit 1345761

Browse files
authored
align sidebar item title under section title (#1283)
Co-authored-by: pourhakimi <[email protected]>
1 parent 738f4fd commit 1345761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pcweb/components/docpage/sidebar/sidebar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def sidebar_item_comp(
151151
),
152152
rx.box(class_name="flex-grow"),
153153
rx.accordion.icon(class_name="size-4"),
154-
class_name="flex items-center !bg-transparent !hover:bg-transparent !py-2 !pr-0 !pl-2 w-full text-slate-9 aria-expanded:text-slate-11 hover:text-slate-11 transition-color",
154+
class_name="flex items-center !bg-transparent !hover:bg-transparent !py-2 !pr-0 w-full text-slate-9 aria-expanded:text-slate-11 hover:text-slate-11 transition-color",
155155
),
156156
),
157157
rx.accordion.content(
@@ -168,7 +168,7 @@ def sidebar_item_comp(
168168
type="multiple",
169169
collapsible=True,
170170
default_value=index[:1].foreach(lambda x: "index" + x.to_string()),
171-
class_name="!my-2 flex flex-col items-start gap-4 !ml-[15px] list-none [box-shadow:inset_1.25px_0_0_0_var(--c-slate-4)]",
171+
class_name="!my-2 flex flex-col items-start gap-4 !ml-[10px] list-none [box-shadow:inset_1.25px_0_0_0_var(--c-slate-4)]",
172172
),
173173
class_name="!p-0 w-full",
174174
),

0 commit comments

Comments
 (0)