diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index bc6c883..16f54e1 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -444,6 +444,8 @@ function BestellungDetail({ id, toast, onBack }) { function ArchivModal({ calcId, onClose }) { const [item, setItem] = useState(null); const [lightbox, setLightbox] = useState(false); + const mobile = window.innerWidth < 768; + useEffect(() => { api('/tools/kalkulator3d').then(items => { setItem(items.find(i => i.id === calcId) || null); @@ -457,50 +459,64 @@ function ArchivModal({ calcId, onClose }) { ); + // Mobile: bottom-sheet, Desktop: centered dialog + const overlayStyle = { + position:'fixed', inset:0, background:'rgba(0,0,0,0.85)', zIndex:6000, + display:'flex', + alignItems: mobile ? 'flex-end' : 'center', + justifyContent: 'center', + padding: mobile ? 0 : 24, + }; + const dialogStyle = mobile ? { + background:'#1a1a1e', borderRadius:'16px 16px 0 0', width:'100%', maxWidth:600, + maxHeight:'85vh', overflowY:'auto', border:'1px solid rgba(255,255,255,0.1)', + } : { + background:'#1a1a1e', borderRadius:16, width:'100%', maxWidth:560, + maxHeight:'90vh', overflowY:'auto', border:'1px solid rgba(255,255,255,0.15)', + boxShadow:'0 24px 80px rgba(0,0,0,0.6)', + }; + return ( -