Skip to content

navigation optimazing#32

Merged
31b4 merged 1 commit intomainfrom
dev-ui
Jan 17, 2026
Merged

navigation optimazing#32
31b4 merged 1 commit intomainfrom
dev-ui

Conversation

@Nvirs
Copy link
Copy Markdown
Collaborator

@Nvirs Nvirs commented Jan 16, 2026

Screenshot 2026-01-17 at 12 47 28 AM

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request aims to optimize the navigation UI by adjusting button padding and icon sizes for improved visual consistency and touch targets on smaller screens.

Changes:

  • Increased horizontal padding from px-1.5 to px-2.5 for most navigation buttons (except Recurring)
  • Increased vertical padding from py-1 to py-2 (or py-3 for Dashboard) for all navigation buttons
  • Increased icon sizes from h-3 w-3 to h-4 w-4 for better visibility on smaller screens
  • Adjusted privacy toggle padding and icon sizes for consistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/src/App.tsx
Comment on lines 434 to 507
<div className="flex gap-0.5 sm:gap-1 p-0.5 sm:p-1 rounded-lg sm:rounded-xl bg-secondary/50 border border-border/50">
<button
onClick={() => setView('dashboard')}
className={`px-1.5 lg:px-3 py-1 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
className={`px-2.5 lg:px-3 py-3 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
view === 'dashboard'
? 'bg-primary text-primary-foreground shadow-sm'
: 'text-muted-foreground hover:text-foreground hover:bg-background/50'
}`}
>
<List className="h-3 w-3 lg:h-3.5 lg:w-3.5" />
<List className="h-4 w-4 lg:h-3.5 lg:w-3.5" />
<span className="hidden lg:inline">Dashboard</span>
</button>
<button
onClick={() => setView('analytics')}
className={`px-1.5 lg:px-3 py-1 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
className={`px-2.5 lg:px-3 py-2 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
view === 'analytics'
? 'bg-primary text-primary-foreground shadow-sm'
: 'text-muted-foreground hover:text-foreground hover:bg-background/50'
}`}
>
<BarChart3 className="h-3 w-3 lg:h-3.5 lg:w-3.5" />
<BarChart3 className="h-4 w-4 lg:h-3.5 lg:w-3.5" />
<span className="hidden lg:inline">Analytics</span>
</button>
<button
onClick={() => setView('investments')}
className={`px-1.5 lg:px-3 py-1 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
className={`px-2.5 lg:px-3 py-2 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
view === 'investments'
? 'bg-primary text-primary-foreground shadow-sm'
: 'text-muted-foreground hover:text-foreground hover:bg-background/50'
}`}
>
<LineChart className="h-3 w-3 lg:h-3.5 lg:w-3.5" />
<LineChart className="h-4 w-4 lg:h-3.5 lg:w-3.5" />
<span className="hidden lg:inline">Investments</span>
</button>
<button
onClick={() => setView('recurring')}
className={`px-1.5 lg:px-3 py-1 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
className={`px-1.5 lg:px-3 py-2 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
view === 'recurring'
? 'bg-primary text-primary-foreground shadow-sm'
: 'text-muted-foreground hover:text-foreground hover:bg-background/50'
}`}
>
<RefreshCw className="h-3 w-3 lg:h-3.5 lg:w-3.5" />
<RefreshCw className="h-4 w-4 lg:h-3.5 lg:w-3.5" />
<span className="hidden lg:inline">Recurring</span>
</button>
<button
onClick={() => setView('settings')}
className={`px-1.5 lg:px-3 py-1 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
className={`px-2.5 lg:px-3 py-2 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
view === 'settings'
? 'bg-primary text-primary-foreground shadow-sm'
: 'text-muted-foreground hover:text-foreground hover:bg-background/50'
}`}
>
<SettingsIcon className="h-3 w-3 lg:h-3.5 lg:w-3.5" />
<SettingsIcon className="h-4 w-4 lg:h-3.5 lg:w-3.5" />
<span className="hidden lg:inline">Settings</span>
</button>
</div>
{/* Privacy Toggle */}
<button
onClick={togglePrivacyMode}
className={`p-1.5 lg:p-2 rounded-md lg:rounded-lg transition-all ${
className={`p-2 lg:p-2 rounded-md lg:rounded-lg transition-all ${
privacyMode === 'hidden'
? 'bg-primary/10 text-primary'
: 'text-muted-foreground hover:text-foreground hover:bg-background/50'
}`}
title={privacyMode === 'hidden' ? 'Show values' : 'Hide values'}
>
{privacyMode === 'hidden' ? (
<EyeOff className="h-3.5 w-3.5 lg:h-4 lg:w-4" />
<EyeOff className="h-4 w-4 lg:h-4 lg:w-4" />
) : (
<Eye className="h-3.5 w-3.5 lg:h-4 lg:w-4" />
<Eye className="h-4 w-4 lg:h-4 lg:w-4" />
)}
</button>
<div className="hidden lg:flex items-center gap-2">
Copy link

Copilot AI Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title contains a spelling error: "optimazing" should be "optimizing".

Copilot uses AI. Check for mistakes.
Comment thread client/src/App.tsx
<button
onClick={() => setView('dashboard')}
className={`px-1.5 lg:px-3 py-1 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
className={`px-2.5 lg:px-3 py-3 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
Copy link

Copilot AI Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent vertical padding on the Dashboard button. The Dashboard button uses py-3 while all other navigation buttons (Analytics, Investments, Recurring, Settings) use py-2. This inconsistency will make the Dashboard button appear taller than the others, creating visual imbalance in the navigation bar. Consider changing py-3 to py-2 to match the other buttons.

Suggested change
className={`px-2.5 lg:px-3 py-3 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
className={`px-2.5 lg:px-3 py-2 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${

Copilot uses AI. Check for mistakes.
Comment thread client/src/App.tsx
<button
onClick={() => setView('recurring')}
className={`px-1.5 lg:px-3 py-1 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
className={`px-1.5 lg:px-3 py-2 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
Copy link

Copilot AI Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent horizontal padding on the Recurring button. The Recurring button uses px-1.5 while all other navigation buttons (Dashboard, Analytics, Investments, Settings) use px-2.5. This inconsistency will make the Recurring button appear narrower than the others, creating visual imbalance in the navigation bar. Consider changing px-1.5 to px-2.5 to match the other buttons.

Suggested change
className={`px-1.5 lg:px-3 py-2 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${
className={`px-2.5 lg:px-3 py-2 lg:py-1.5 text-xs font-medium rounded-md lg:rounded-lg transition-all flex items-center gap-1 lg:gap-1.5 ${

Copilot uses AI. Check for mistakes.
@Nvirs Nvirs requested a review from 31b4 January 17, 2026 00:00
@31b4 31b4 merged commit c30640b into main Jan 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants