From 474c27fae8c2ffe7db7ecbc6b8e97152b7ded747 Mon Sep 17 00:00:00 2001 From: CallMeTechie <34693633+CallMeTechie@users.noreply.github.com> Date: Tue, 23 Jun 2026 20:22:10 +0200 Subject: [PATCH] =?UTF-8?q?fix(theme):=20Aurora=20RDP=20card=20=E2=80=94?= =?UTF-8?q?=20dedicated=20Host=20row=20so=20long=20FQDNs=20show=20in=20ful?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Aurora RDP card only showed the host inside the 'Target' row (host:port), where a long FQDN wrapped awkwardly. Add a dedicated 'Host' row between Mode and Target showing r.host on its own line (word-break for long hostnames); Target keeps host:port. The card title shows the route name (the host was never in the title). New i18n key rdp.kv.host (en+de). Aurora-only (auroraRenderGrid). aurora_theme.test 144/0. --- public/js/rdp.js | 15 +++++++++++++++ src/i18n/de.json | 1 + src/i18n/en.json | 1 + 3 files changed, 17 insertions(+) diff --git a/public/js/rdp.js b/public/js/rdp.js index 87ccd88f..2fe75989 100644 --- a/public/js/rdp.js +++ b/public/js/rdp.js @@ -1817,6 +1817,20 @@ modeRow.appendChild(modeV); kv.appendChild(modeRow); + // Host row (hostname/domain on its own line so long FQDNs show in full) + var hostRow = document.createElement('div'); + hostRow.className = 'row'; + var hostK = document.createElement('span'); + hostK.className = 'k'; + hostK.textContent = GC.t['rdp.kv.host'] || 'Host'; + var hostV = document.createElement('span'); + hostV.className = 'v'; + hostV.style.cssText = 'word-break:break-all;text-align:right'; + hostV.textContent = r.host || '—'; + hostRow.appendChild(hostK); + hostRow.appendChild(hostV); + kv.appendChild(hostRow); + // Target row (host:port) var targetRow = document.createElement('div'); targetRow.className = 'row'; @@ -1825,6 +1839,7 @@ targetK.textContent = GC.t['rdp.kv.target'] || 'Target'; var targetV = document.createElement('span'); targetV.className = 'v'; + targetV.style.cssText = 'word-break:break-all;text-align:right'; targetV.textContent = (r.host || '') + ':' + (r.port || 3389); targetRow.appendChild(targetK); targetRow.appendChild(targetV); diff --git a/src/i18n/de.json b/src/i18n/de.json index 0a7013c0..25f1d5b1 100644 --- a/src/i18n/de.json +++ b/src/i18n/de.json @@ -1423,6 +1423,7 @@ "rdp.session.not_authorized": "Nicht berechtigt", "rdp.kv.mode": "Modus", + "rdp.kv.host": "Host", "rdp.kv.target": "Ziel", "rdp.kv.health": "Health", "rdp.health_reachable": "erreichbar", diff --git a/src/i18n/en.json b/src/i18n/en.json index c0b6cb6b..0f159611 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -1423,6 +1423,7 @@ "rdp.session.not_authorized": "Not authorized", "rdp.kv.mode": "Mode", + "rdp.kv.host": "Host", "rdp.kv.target": "Target", "rdp.kv.health": "Health", "rdp.health_reachable": "Reachable",