File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
pcweb/components/docpage/navbar Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments