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'; }
|
||||
else { headerLogo.style.display = 'none'; if (headerIcon) headerIcon.style.display = ''; }
|
||||
}
|
||||
// Kun logo on, näytetään vain "Hallintapaneeli" — logo kertoo yrityksen
|
||||
if (headerTitle) headerTitle.textContent = logoUrl ? 'Hallintapaneeli' : nimi;
|
||||
if (headerSubtitle) {
|
||||
if (logoUrl) { headerSubtitle.style.display = 'none'; }
|
||||
else { headerSubtitle.style.display = ''; headerSubtitle.textContent = subtitle || 'Hallintapaneeli'; }
|
||||
}
|
||||
// Kun logo on, piilotetaan tekstit — logo riittää
|
||||
if (headerTitle) { headerTitle.style.display = logoUrl ? 'none' : ''; if (!logoUrl) headerTitle.textContent = nimi; }
|
||||
if (headerSubtitle) { headerSubtitle.style.display = logoUrl ? 'none' : ''; if (!logoUrl) headerSubtitle.textContent = subtitle || ''; }
|
||||
|
||||
// Sivun title
|
||||
document.title = nimi;
|
||||
|
||||
Reference in New Issue
Block a user