fix: Statistik-Tab-Leiste scrollt eigenstaendig horizontal (Mobile)

This commit is contained in:
2026-07-11 02:20:35 +02:00
parent 9b947aeb89
commit 59cced35be

View File

@@ -521,12 +521,13 @@ export default function Statistik({ mobile, user, toast }) {
</div> </div>
{/* ── Tabs ── */} {/* ── Tabs ── */}
<div style={{display:'flex',gap:4,marginBottom:16}}> <div style={{display:'flex',gap:4,marginBottom:16,overflowX:'auto',overflowY:'hidden',
scrollbarWidth:'none',WebkitOverflowScrolling:'touch',paddingBottom:2}}>
{[['overview','📈 Übersicht'],['revenue','💰 Einnahmen'],['expenses','💸 Ausgaben'],['orders','📦 Bestellungen'],['makerworld','🖨️ MakerWorld']].map(([id,label])=>( {[['overview','📈 Übersicht'],['revenue','💰 Einnahmen'],['expenses','💸 Ausgaben'],['orders','📦 Bestellungen'],['makerworld','🖨️ MakerWorld']].map(([id,label])=>(
<button key={id} onClick={()=>setTab(id)} style={{ <button key={id} onClick={()=>setTab(id)} style={{
background: tab===id ? 'rgba(255,255,255,0.08)' : 'transparent', background: tab===id ? 'rgba(255,255,255,0.08)' : 'transparent',
border: `1px solid ${tab===id ? 'rgba(255,255,255,0.2)' : 'rgba(255,255,255,0.08)'}`, border: `1px solid ${tab===id ? 'rgba(255,255,255,0.2)' : 'rgba(255,255,255,0.08)'}`,
borderRadius:8, padding:'6px 14px', borderRadius:8, padding:'6px 14px', flexShrink:0, whiteSpace:'nowrap',
color: tab===id ? '#fff' : 'rgba(255,255,255,0.4)', color: tab===id ? '#fff' : 'rgba(255,255,255,0.4)',
fontFamily:'monospace', fontSize:11, cursor:'pointer', fontFamily:'monospace', fontSize:11, cursor:'pointer',
}}>{label}</button> }}>{label}</button>