fix(ux): remove search autoFocus in mobile shop sheet and add dedicated search entry in mobile menu
Deploy Canina / deploy (push) Successful in 2m8s
Deploy Canina / deploy (push) Successful in 2m8s
This commit is contained in:
1 parent
8326e10ce8
commit
f3806cd6de
2 files changed
+63
-14
No files matched your search
@@ -238,7 +238,6 @@ export default function MobileBottomNav({
|
||||
value={searchQuery}
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-xl py-2.5 pr-10 pl-14 text-xs outline-none focus:border-canina-blue font-vazir text-medical-gray-900"
|
||||
autoFocus
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
@@ -408,6 +407,22 @@ export default function MobileBottomNav({
|
||||
<div className="overflow-y-auto flex-1 space-y-3 py-1">
|
||||
{/* Navigation Links Grid */}
|
||||
<div className="grid grid-cols-2 gap-2">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => navigateAndClose("/search")}
|
||||
className="col-span-2 flex items-center justify-between p-3.5 bg-gradient-to-r from-canina-blue/10 via-white to-canina-blue/5 border border-canina-blue/30 rounded-2xl text-xs font-black text-canina-blue hover:border-canina-blue text-right shadow-xs"
|
||||
>
|
||||
<div className="flex items-center gap-2.5">
|
||||
<div className="w-8 h-8 rounded-xl bg-canina-blue text-white flex items-center justify-center shadow-xs">
|
||||
<Search className="w-4 h-4" />
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-xs font-black text-medical-gray-900">جستجوی پیشرفته و هوشمند</div>
|
||||
<div className="text-[10px] text-medical-gray-400 font-medium">جستجو در داروها، مکملها و علائم بالینی</div>
|
||||
</div>
|
||||
</div>
|
||||
<ChevronLeft className="w-4 h-4 text-canina-blue" />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => navigateAndClose("/dashboard?tab=pets")}
|
||||
|
||||
Reference in new issue
Block a user