Fix: doppelte SW-Registrierung entfernt, Reload bei App-Fokus; Schnellzugriff gleichgross; Kalender ohne Komma

This commit is contained in:
2026-06-02 21:15:22 +02:00
parent fe899f5287
commit 9f8891395a
4 changed files with 24 additions and 26 deletions

View File

@@ -459,7 +459,7 @@ function QuickLinksCarousel({ links }) {
};
if (pageCount <= 1) return (
<div style={{ display:'grid', gridTemplateColumns:`repeat(${perRow}, 1fr)`, gap, justifyItems:'center' }}>
<div style={{ display:'grid', gridTemplateColumns:`repeat(${perRow}, 1fr)`, gap }}>
{links.map(l => <QuickLinkIcon key={l.id} l={l}/>)}
</div>
);
@@ -476,7 +476,6 @@ function QuickLinksCarousel({ links }) {
display:'grid',
gridTemplateColumns:`repeat(${perRow}, 1fr)`,
gridTemplateRows:'repeat(2, auto)',
justifyItems:'center',
gap, flexShrink:0, scrollSnapAlign:'start',
width:'100%', minWidth:'100%',
}}>
@@ -507,7 +506,7 @@ function QuickLinkIcon({ l }) {
style={{ display:'flex', flexDirection:'column', alignItems:'center', justifyContent:'center', gap:3,
padding:'4px 2px', background:'rgba(255,255,255,0.04)',
border:'1px solid rgba(255,255,255,0.08)', borderRadius:10,
textDecoration:'none', height:48, cursor:'pointer' }}>
textDecoration:'none', height:48, width:'100%', boxSizing:'border-box', cursor:'pointer' }}>
{l.icon && l.icon.startsWith('http')
? <img src={l.icon} alt="" style={{width:16,height:16,objectFit:'contain'}} onError={e=>e.target.style.display='none'}/>
: <span style={{ fontSize:16 }}>{l.icon}</span>}
@@ -2381,7 +2380,7 @@ export default function App() {
const [user,setUser]=useState(null);
const [active,setActiveRaw]=useState('dashboard');
const setActive = (page) => {
import('./main.jsx').then(m => m.reloadIfNewBuild?.()).catch(()=>{});
if (window.__newBuildAvailable) { window.location.reload(); return; }
setActiveRaw(page);
};
const [toastMsg,setToastMsg]=useState({msg:'',type:'success'});