Skip to content

Commit 3348907

Browse files
authored
center navbar search button (#1279)
* center navbar search button * bump pyyaml
1 parent 5dc60ae commit 3348907

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

pcweb/components/docpage/navbar/inkeep.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ def add_hooks(self):
199199
box-shadow: 0px 24px 12px 0px rgba(28, 32, 36, 0.02), 0px 8px 8px 0px rgba(28, 32, 36, 0.02), 0px 2px 6px 0px rgba(28, 32, 36, 0.02);
200200
transition: background-color 0.1s linear, width 0s;
201201
}
202+
203+
[data-theme='light'] .ikp-search-bar__container,
204+
[data-theme='dark'] .ikp-search-bar__container {
205+
display: flex;
206+
justify-content: center;
207+
align-items: center;
208+
}
202209
203210
[data-theme='light'] .ikp-search-bar__button:hover,
204211
[data-theme='dark'] .ikp-search-bar__button:hover {

pcweb/components/docpage/navbar/navmenu/navmenu.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class NavMenuRoot(NavMenu):
2828
orientation: Var[LiteralMenuComponentOrientation] = "horizontal"
2929
dir: Var[LiteralMenuComponentDir]
3030

31-
class_name: Var[str] = (
31+
class_name: Var[str] | str = (
3232
"relative flex w-full items-center h-full justify-between gap-6 mx-auto z-[9999] flex-row max-w-[94.5rem]"
3333
)
3434

@@ -66,7 +66,7 @@ class NavMenuTrigger(NavMenu):
6666

6767
as_child: Var[bool] = False
6868

69-
class_name: Var[str] = "outline-none user-select-none"
69+
class_name: Var[str] | str = "outline-none user-select-none"
7070

7171

7272
class NavMenuContent(NavMenu):
@@ -82,7 +82,7 @@ class NavMenuContent(NavMenu):
8282
on_pointer_down_outside: rx.EventHandler[lambda e: [e]] = None
8383
on_focus_outside: rx.EventHandler[lambda e: [e]] = None
8484
on_interact_outside: rx.EventHandler[lambda e: [e]] = None
85-
class_name: Var[str] = (
85+
class_name: Var[str] | str = (
8686
"data-[motion=from-start]:animate-enterFromLeft data-[motion=from-end]:animate-enterFromRight data-[motion=to-start]:animate-exitToLeft data-[motion=to-end]:animate-exitToRight absolute top-0 left-0 w-full sm:w-auto",
8787
)
8888

@@ -96,7 +96,7 @@ class NavMenuViewport(NavMenu):
9696
as_child: Var[bool] = False
9797
force_mount: Var[bool]
9898

99-
class_name: Var[str] = (
99+
class_name: Var[str] | str = (
100100
"data-[state=open]:animate-scaleIn data-[state=closed]:animate-scaleOut relative h-[var(--radix-navigation-menu-viewport-height)] w-full origin-[top_left] overflow-hidden bg-slate-2 transition-[width,_height] duration-300 sm:w-[var(--radix-navigation-menu-viewport-width)] border border-slate-5 shadow-large rounded-xl"
101101
)
102102

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plotly-express==0.4.1
66
googletrans-py==4.0.0
77
typesense==0.14.0
88
openai==1.13.3
9-
pyyaml==6.0.1
9+
pyyaml==6.0.2
1010
flexdown>=0.1.5a12,<0.2
1111
reflex @ git+https://github.com/reflex-dev/reflex@main
1212
mistletoe>=1.2.1

0 commit comments

Comments
 (0)