ui: hide header text when logo is set — logo is enough

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 17:29:13 +02:00
parent a0ee98cc9b
commit 3b7def1186

View File

@@ -2155,12 +2155,9 @@ function applyBranding(branding) {
if (logoUrl) { headerLogo.src = logoUrl; headerLogo.style.display = ''; if (headerIcon) headerIcon.style.display = 'none'; } if (logoUrl) { headerLogo.src = logoUrl; headerLogo.style.display = ''; if (headerIcon) headerIcon.style.display = 'none'; }
else { headerLogo.style.display = 'none'; if (headerIcon) headerIcon.style.display = ''; } else { headerLogo.style.display = 'none'; if (headerIcon) headerIcon.style.display = ''; }
} }
// Kun logo on, näytetään vain "Hallintapaneeli" — logo kertoo yrityksen // Kun logo on, piilotetaan tekstit — logo riittää
if (headerTitle) headerTitle.textContent = logoUrl ? 'Hallintapaneeli' : nimi; if (headerTitle) { headerTitle.style.display = logoUrl ? 'none' : ''; if (!logoUrl) headerTitle.textContent = nimi; }
if (headerSubtitle) { if (headerSubtitle) { headerSubtitle.style.display = logoUrl ? 'none' : ''; if (!logoUrl) headerSubtitle.textContent = subtitle || ''; }
if (logoUrl) { headerSubtitle.style.display = 'none'; }
else { headerSubtitle.style.display = ''; headerSubtitle.textContent = subtitle || 'Hallintapaneeli'; }
}
// Sivun title // Sivun title
document.title = nimi; document.title = nimi;