Fix: Staging-Nav-Styles nach App.init() setzen (inline, mit Retry)
This commit is contained in:
parent
0ecbc09b97
commit
15d8347e16
1 changed files with 11 additions and 15 deletions
|
|
@ -863,22 +863,18 @@ const App = (() => {
|
||||||
|
|
||||||
// App starten
|
// App starten
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
App.init();
|
||||||
if (IS_STAGING) {
|
if (IS_STAGING) {
|
||||||
document.title = '⚗️ ' + document.title;
|
document.title = '⚗️ ' + document.title;
|
||||||
// Bottom-Nav lila einfärben als Staging-Indikator
|
// Nach App.init() Styles direkt setzen — sonst überschreibt init sie
|
||||||
const style = document.createElement('style');
|
const _applyStaging = () => {
|
||||||
style.textContent = `
|
const nav = document.getElementById('bottom-nav');
|
||||||
#bottom-nav {
|
if (!nav) return;
|
||||||
background: #2d1b69 !important;
|
nav.style.cssText += ';background:#2d1b69!important;border-top-color:#7c3aed!important;box-shadow:0 -2px 12px rgba(124,58,237,0.4)!important';
|
||||||
border-top-color: #7c3aed !important;
|
nav.querySelectorAll('.nav-item-label').forEach(el => el.style.color = 'rgba(196,181,253,0.75)');
|
||||||
}
|
nav.querySelectorAll('.plus-btn, .nav-item-center button').forEach(el => el.style.background = '#7c3aed');
|
||||||
#bottom-nav .nav-item-label { color: rgba(255,255,255,0.6) !important; }
|
};
|
||||||
#bottom-nav .nav-item.active .nav-item-label { color: #c4b5fd !important; }
|
_applyStaging();
|
||||||
#bottom-nav .nav-item svg { color: rgba(255,255,255,0.5) !important; }
|
setTimeout(_applyStaging, 400); // nochmal nach vollständigem Render
|
||||||
#bottom-nav .nav-item.active svg { color: #c4b5fd !important; }
|
|
||||||
#bottom-nav .nav-item-center .plus-btn { background: #7c3aed !important; }
|
|
||||||
`;
|
|
||||||
document.head.appendChild(style);
|
|
||||||
}
|
}
|
||||||
App.init();
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue