Skip to content

Commit 6fa591f

Browse files
authored
ENG-7728: fix search icon in navbar (#1634)
* fix search icon in navbar * fix
1 parent b06ff1e commit 6fa591f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pcweb/components/docpage/navbar/typesense.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def search_trigger() -> rx.Component:
248248
return rx.box(
249249
rx.icon(
250250
"search",
251-
class_name="absolute left-2 top-1/2 transform -translate-y-1/2 text-md w-4 h-4 flex-shrink-0 !text-slate-9",
251+
class_name="md:absolute md:left-2 md:top-1/2 md:transform md:-translate-y-1/2 text-md w-4 h-4 flex-shrink-0 !text-slate-9",
252252
),
253253
rx.text(
254254
"⌘K",
@@ -259,7 +259,7 @@ def search_trigger() -> rx.Component:
259259
read_only=True,
260260
class_name="bg-transparent border-none outline-none focus:outline-none pl-4 cursor-pointer hidden md:block",
261261
),
262-
class_name="py-[6px] px-[12px] w-full hover:bg-slate-3 cursor-pointer flex max-h-[32px] min-h-[32px] border border-slate-5 rounded-[10px] bg-slate-1 transition-bg relative",
262+
class_name="py-[6px] md:px-[12px] w-8 md:w-full hover:bg-slate-3 cursor-pointer flex items-center justify-center h-8 border border-slate-5 rounded-[10px] bg-slate-1 transition-bg relative",
263263
)
264264

265265
def search_breadcrumb(items):

0 commit comments

Comments
 (0)