Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions pcweb/components/docpage/navbar/navbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,16 +433,18 @@ def new_component_section() -> rx.Component:
rx.badge(
"Docs",
variant="surface",
class_name="text-violet-9 xl:flex hidden text-sm",
display=rx.cond(
rx.State.router.page.path.contains("docs")
| rx.State.router.page.path.contains("ai-builder")
| rx.State.router.page.path.contains("cloud"),
"block",
"none",
),
class_name=(
"text-violet-9 text-sm "
+ rx.cond(
rx.State.router.page.path.contains("docs")
| rx.State.router.page.path.contains("ai-builder")
| rx.State.router.page.path.contains("cloud"),
"hidden lg:flex",
"hidden",
)
)
),
class_name="flex flex-row gap-x-0",
class_name="flex flex-row gap-x-0 items-center",
),
),
rx.cond(
Expand Down