Skip to content

Commit ce1cf0f

Browse files
authored
ENG-7443: make DOCS badge responsive (#1591)
* make DOCS badge responsive * center logo + badge
1 parent d9a8379 commit ce1cf0f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

pcweb/components/docpage/navbar/navbar.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,18 @@ def new_component_section() -> rx.Component:
433433
rx.badge(
434434
"Docs",
435435
variant="surface",
436-
class_name="text-violet-9 xl:flex hidden text-sm",
437-
display=rx.cond(
438-
rx.State.router.page.path.contains("docs")
439-
| rx.State.router.page.path.contains("ai-builder")
440-
| rx.State.router.page.path.contains("cloud"),
441-
"block",
442-
"none",
443-
),
436+
class_name=(
437+
"text-violet-9 text-sm "
438+
+ rx.cond(
439+
rx.State.router.page.path.contains("docs")
440+
| rx.State.router.page.path.contains("ai-builder")
441+
| rx.State.router.page.path.contains("cloud"),
442+
"hidden lg:flex",
443+
"hidden",
444+
)
445+
)
444446
),
445-
class_name="flex flex-row gap-x-0",
447+
class_name="flex flex-row gap-x-0 items-center",
446448
),
447449
),
448450
rx.cond(

0 commit comments

Comments
 (0)