Skip to content

Commit 304c97e

Browse files
committed
Fix: Resolve navigation lockups in Admin by disabling prefetch and cleaning touch classes
1 parent 504282f commit 304c97e

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

web/src/components/admin/AdminBottomNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function AdminBottomNav() {
4848
key={item.href}
4949
href={item.href}
5050
prefetch={false}
51-
className={`flex flex-col items-center justify-center w-full h-full space-y-1 relative transition-colors touch-auto select-none ${isActive ? 'text-ochre' : 'text-gray-500'
51+
className={`flex flex-col items-center justify-center w-full h-full space-y-1 relative transition-colors select-none ${isActive ? 'text-ochre' : 'text-gray-500'
5252
}`}
5353
style={{ touchAction: 'manipulation' }}
5454
>

web/src/components/admin/AdminClientWrapper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default function AdminClientWrapper({
4141
<div className="flex items-center gap-3">
4242
<Link
4343
href="/"
44+
prefetch={false}
4445
className="flex items-center gap-3 bg-gray-900 text-white px-4 lg:px-6 py-2.5 lg:py-3 rounded-2xl shadow-xl shadow-gray-200 border border-white/10 hover:bg-black transition-all group active:scale-95 whitespace-nowrap"
4546
>
4647
<Home className="w-3.5 h-3.5 lg:w-4 lg:h-4 text-white/70 group-hover:text-ochre transition-colors" />

web/src/components/admin/AdminSidebar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function AdminSidebar({
6262
}`}>
6363
{/* Admin Brand */}
6464
<div className="h-20 flex items-center justify-between px-8 border-b border-white/5 bg-gray-900/50 backdrop-blur-xl sticky top-0 z-10">
65-
<Link href="/admin" className="flex items-center gap-3 group" onClick={onClose}>
65+
<Link href="/admin" prefetch={false} className="flex items-center gap-3 group" onClick={onClose}>
6666
<div className="w-10 h-10 bg-ochre rounded-xl flex items-center justify-center shadow-lg shadow-ochre/20 group-hover:rotate-12 transition-transform duration-300">
6767
<ShieldCheck className="w-6 h-6 text-white" />
6868
</div>
@@ -97,6 +97,7 @@ export default function AdminSidebar({
9797
<Link
9898
key={item.href}
9999
href={item.href}
100+
prefetch={false}
100101
onClick={onClose}
101102
className={`flex items-center justify-between px-4 py-3.5 rounded-2xl transition-all duration-300 group ${isActive
102103
? 'bg-ochre text-white shadow-lg shadow-ochre/20'
@@ -142,6 +143,7 @@ export default function AdminSidebar({
142143
</div>
143144
<Link
144145
href="/"
146+
prefetch={false}
145147
className="p-2 text-gray-500 hover:text-white hover:bg-white/10 rounded-xl transition-all"
146148
title="Return to App"
147149
onClick={onClose}

0 commit comments

Comments
 (0)