mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 11:55:22 +02:00
fix(ui): make Sync button smaller and more subtle in header
This commit is contained in:
@@ -736,13 +736,14 @@ const App: React.FC = () => {
|
||||
<button
|
||||
onClick={() => { handleDataFetch(); handleAdsFetch(); handleTrafficFetch(); handleVendorStockFetch(); handleBuyBoxFetch(); }}
|
||||
disabled={syncing}
|
||||
className={`flex items-center gap-2 px-3 py-1.5 md:px-4 md:py-2 rounded-xl text-sm font-black uppercase tracking-widest transition-all
|
||||
title={syncing ? 'Syncing...' : 'Sync Now'}
|
||||
className={`flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs font-semibold transition-all active:scale-95
|
||||
${syncing
|
||||
? 'bg-indigo-500/20 text-indigo-400 border border-indigo-500/30'
|
||||
: 'bg-slate-900 text-slate-300 border border-border hover:border-indigo-500/50 hover:text-white shadow-lg active:scale-95'}`}
|
||||
? 'text-indigo-400/70 cursor-not-allowed'
|
||||
: 'text-slate-500 hover:text-slate-300 hover:bg-slate-800/60'}`}
|
||||
>
|
||||
<RefreshIcon className={`w-4 h-4 ${syncing ? 'animate-spin' : ''}`} />
|
||||
<span className="hidden sm:inline">{syncing ? 'Syncing...' : 'Sync Now'}</span>
|
||||
<RefreshIcon className={`w-3.5 h-3.5 ${syncing ? 'animate-spin' : ''}`} />
|
||||
<span className="hidden sm:inline">{syncing ? 'Syncing...' : 'Sync'}</span>
|
||||
</button>
|
||||
{/* View Switcher - Hidden on mobile (shown in bottom nav instead) */}
|
||||
<div className="hidden md:flex bg-slate-900 rounded-lg p-1 border border-border">
|
||||
|
||||
Reference in New Issue
Block a user