From 3b7def118695bfcb7426fcfed7ecf0ec3f3ecb0e Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Tue, 10 Mar 2026 17:29:13 +0200 Subject: [PATCH] =?UTF-8?q?ui:=20hide=20header=20text=20when=20logo=20is?= =?UTF-8?q?=20set=20=E2=80=94=20logo=20is=20enough?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- script.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/script.js b/script.js index e9cf4f4..09152bb 100644 --- a/script.js +++ b/script.js @@ -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;