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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user