v1.8.18: admin shows site name from branding, reset colors to green

This commit is contained in:
2026-05-28 21:35:37 +00:00
parent cda4c36a1a
commit aad6124356
10 changed files with 7 additions and 2 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+7 -2
View File
@@ -337,7 +337,7 @@ a[role=button]:active {
<span class="msym text-primary text-lg">auto_awesome</span> <span class="msym text-primary text-lg">auto_awesome</span>
</div> </div>
<div> <div>
<h1 class="text-base font-bold text-primary leading-tight">AfakZaid RAG</h1> <h1 class="text-base font-bold text-primary leading-tight" id="admin-brand-name">AfakZaid RAG</h1>
<p class="text-[10px] text-on-surface-variant/60 uppercase tracking-widest">Admin Console</p> <p class="text-[10px] text-on-surface-variant/60 uppercase tracking-widest">Admin Console</p>
</div> </div>
</div> </div>
@@ -394,7 +394,7 @@ a[role=button]:active {
<button onclick="openSidebar()" class="text-on-surface-variant hover:text-primary"> <button onclick="openSidebar()" class="text-on-surface-variant hover:text-primary">
<span class="msym text-2xl">menu</span> <span class="msym text-2xl">menu</span>
</button> </button>
<h1 class="text-primary font-bold">AfakZaid Admin</h1> <h1 class="text-primary font-bold" id="admin-brand-mobile">AfakZaid Admin</h1>
</header> </header>
<div class="p-4 lg:p-8 max-w-7xl mx-auto"> <div class="p-4 lg:p-8 max-w-7xl mx-auto">
@@ -1613,6 +1613,11 @@ async function loadBranding() {
document.getElementById('b-site-name').value = d.site_name||''; document.getElementById('b-site-name').value = d.site_name||'';
document.getElementById('b-subtitle').value = d.site_subtitle||''; document.getElementById('b-subtitle').value = d.site_subtitle||'';
document.getElementById('b-logo').value = d.logo_url||''; document.getElementById('b-logo').value = d.logo_url||'';
// Update admin header branding
const abn = document.getElementById('admin-brand-name');
const abm = document.getElementById('admin-brand-mobile');
if (abn && d.site_name) abn.textContent = d.site_name;
if (abm && d.site_name) abm.textContent = d.site_name + ' Admin';
document.getElementById('b-bg-color').value = d.bg_color||'#0c1324'; document.getElementById('b-bg-color').value = d.bg_color||'#0c1324';
document.getElementById('b-bg-color-hex').value = d.bg_color||'#0c1324'; document.getElementById('b-bg-color-hex').value = d.bg_color||'#0c1324';
document.getElementById('b-bg-image').value = d.bg_image||''; document.getElementById('b-bg-image').value = d.bg_image||'';