From e7947f748668988d557f50550bfe570e0ba446ba Mon Sep 17 00:00:00 2001 From: Sucukdeluxe <259325684+Sucukdeluxe@users.noreply.github.com> Date: Fri, 21 Aug 2026 00:37:26 +0200 Subject: [PATCH] style: extend the update changelog viewport Increase the release-notes area by another twenty percent while constraining it to the viewport so more changelog content remains visible without hiding update controls. --- renderer/styles.css | 2 +- tests/startup-renderer.test.js | 2 +- tests/ui-smoke.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/renderer/styles.css b/renderer/styles.css index 2f8400c..2779847 100644 --- a/renderer/styles.css +++ b/renderer/styles.css @@ -2468,7 +2468,7 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; } .update-release-notes { grid-column: 1 / -1; - height: min(220px, 42vh); + height: min(264px, 48vh); max-height: none; margin-top: 18px; padding: 12px; diff --git a/tests/startup-renderer.test.js b/tests/startup-renderer.test.js index d889c72..55ee7da 100644 --- a/tests/startup-renderer.test.js +++ b/tests/startup-renderer.test.js @@ -175,7 +175,7 @@ test('header occupies its final geometry before asynchronous initialization', () assert.match(css, /\.header-update-button\.update-available\s*\{[^}]*background:\s*var\(--success\);[^}]*color:\s*#000;/su); assert.match(css, /\.header-update-button\.update-available:hover\s*\{[^}]*background:\s*var\(--success-end\);[^}]*color:\s*#000;/su); assert.match(css, /\.update-dialog\s*\{[^}]*width:\s*min\(576px,\s*100%\);/su); - assert.match(css, /\.update-release-notes\s*\{[^}]*height:\s*min\(220px,\s*42vh\);/su); + assert.match(css, /\.update-release-notes\s*\{[^}]*height:\s*min\(264px,\s*48vh\);/su); assert.match(html, /class="update-progress-footer"[\s\S]*id="updateProgressDetails"[\s\S]*id="updateProgressSize"[\s\S]*id="updateProgressSpeed"[\s\S]*id="updateProgressEta"[\s\S]*id="updateProgressText"/u); assert.match(css, /#updateProgressDetails\s*\{[^}]*display:\s*grid;[^}]*grid-template-columns:\s*19ch auto 11ch auto 10ch;[^}]*font-variant-numeric:\s*tabular-nums;/su); assert.match(css, /#updateProgressDetails\[hidden\]\s*\{[^}]*display:\s*none;/su); diff --git a/tests/ui-smoke.js b/tests/ui-smoke.js index 1225f11..8867b9d 100644 --- a/tests/ui-smoke.js +++ b/tests/ui-smoke.js @@ -2450,7 +2450,7 @@ setTimeout(async () => { const updateDialogChangelog = await wc.executeJavaScript('(() => { const title = document.querySelector(".update-release-notes-title"); const body = document.getElementById("updateReleaseNotesBody"); const titleRect = title?.getBoundingClientRect(); const bodyRect = body?.getBoundingClientRect(); return { hidden: document.getElementById("updateReleaseNotes")?.hidden, title: title?.textContent?.trim(), body: body?.textContent, gap: bodyRect && titleRect ? bodyRect.top - titleRect.bottom : null }; })()'); check('Update dialog renders a compact normalized changelog', updateDialogChangelog.hidden === false && updateDialogChangelog.title === 'Changelog' && updateDialogChangelog.body === 'New in this version\\n\\nMenus and navigation\\n\\n• Added live language switching.\\n• Improved settings layout.' && updateDialogChangelog.gap <= 10); const updateDialogSize = await wc.executeJavaScript('(() => ({ width: document.querySelector(".update-dialog")?.getBoundingClientRect().width, notesHeight: document.getElementById("updateReleaseNotes")?.getBoundingClientRect().height }))()'); - check('Update dialog and changelog provide more horizontal and vertical room', updateDialogSize.width === 576 && updateDialogSize.notesHeight === 220); + check('Update dialog and changelog provide more horizontal and vertical room', updateDialogSize.width === 576 && updateDialogSize.notesHeight === 264); const updateHeaderHint = await wc.executeJavaScript('(() => { const button = document.getElementById("headerUpdateBtn"); const tooltip = getComputedStyle(button, "::after"); return [button?.textContent?.trim(), button?.getAttribute("aria-label"), button?.dataset.tooltip, button?.hasAttribute("title"), tooltip.left, tooltip.right].join("|"); })()'); check('Available update uses one centered custom tooltip below the header action', updateHeaderHint === 'Update verfügbar|Update v9.9.9 verfügbar. Klicken zum Installieren.|Update v9.9.9 verfügbar. Klicken zum Installieren.|false|73px|auto');