fix: Statistik-Tab-Leiste scrollt eigenstaendig horizontal (Mobile)
This commit is contained in:
@@ -521,12 +521,13 @@ export default function Statistik({ mobile, user, toast }) {
|
||||
</div>
|
||||
|
||||
{/* ── 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])=>(
|
||||
<button key={id} onClick={()=>setTab(id)} style={{
|
||||
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)'}`,
|
||||
borderRadius:8, padding:'6px 14px',
|
||||
borderRadius:8, padding:'6px 14px', flexShrink:0, whiteSpace:'nowrap',
|
||||
color: tab===id ? '#fff' : 'rgba(255,255,255,0.4)',
|
||||
fontFamily:'monospace', fontSize:11, cursor:'pointer',
|
||||
}}>{label}</button>
|
||||
|
||||
Reference in New Issue
Block a user