Skip to content

Commit f77a149

Browse files
committed
fix: add AutoTrader to mobile nav + bust Vercel build cache
- AppShell NAV array was missing /autotrader — page existed but was unreachable from mobile bottom bar - tightened nav item sizing (icon 18px, font 9px, flex:1) so 6 items fit without overflow on 375px screens - mobile-nav CSS: justify-content space-around, horizontal padding 4px
1 parent 80490e2 commit f77a149

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

src/components/layout/AppShell.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ import { toast } from '../shared/Toast';
1414
import { usePositionStore } from '../../store/positionStore';
1515

1616
const NAV = [
17-
{ to: '/', icon: LayoutGrid, label: 'Scanner' },
18-
{ to: '/backtest', icon: Activity, label: 'Backtest' },
19-
{ to: '/portfolio', icon: Briefcase, label: 'Portfolio' },
20-
{ to: '/analytics', icon: BarChart2, label: 'Analytics' },
21-
{ to: '/settings', icon: Settings, label: 'Settings' },
17+
{ to: '/', icon: LayoutGrid, label: 'Scanner' },
18+
{ to: '/backtest', icon: Activity, label: 'Backtest' },
19+
{ to: '/autotrader', icon: Bot, label: 'Auto' },
20+
{ to: '/portfolio', icon: Briefcase, label: 'Portfolio' },
21+
{ to: '/analytics', icon: BarChart2, label: 'Analytics' },
22+
{ to: '/settings', icon: Settings, label: 'Settings' },
2223
];
2324

2425
// Mobile bottom navigation bar
@@ -30,14 +31,15 @@ const MobileNav: React.FC = () => (
3031
to={to}
3132
end={to === '/'}
3233
style={({ isActive }) => ({
33-
display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 3,
34+
display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2,
3435
color: isActive ? 'var(--hl-teal)' : 'var(--text-muted)',
35-
textDecoration: 'none', padding: '4px 8px', fontSize: 10,
36-
fontFamily: 'var(--font-display)', fontWeight: 500,
37-
minWidth: 48,
36+
textDecoration: 'none', padding: '4px 4px', fontSize: 9,
37+
fontFamily: 'var(--font-body)', fontWeight: 500,
38+
minWidth: 44, flex: 1,
39+
letterSpacing: '0.02em',
3840
})}
3941
>
40-
<Icon size={20} />
42+
<Icon size={18} />
4143
{label}
4244
</NavLink>
4345
))}

src/styles/global.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,10 @@ select.input option { background: var(--bg-overlay); }
163163
background: var(--bg-surface);
164164
border-top: 1px solid var(--glass-border);
165165
z-index: 100;
166-
padding: 6px 0 env(safe-area-inset-bottom, 6px);
166+
padding: 6px 4px env(safe-area-inset-bottom, 6px);
167+
justify-content: space-around;
168+
align-items: center;
169+
gap: 0;
167170
}
168171

169172
/* ── Breakpoints ─────────────────────────────────────────────────────── */

0 commit comments

Comments
 (0)