From d1c981bc196f2e3c4ee2a2b82c9e7f2733b15382 Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:11:48 +0300 Subject: [PATCH] Update developer-tools-template.ts: add independent scrollbars for left & right panels for large screens (#17765) * Update developer-tools-template.ts * Update developer-tools-template.ts * fix overflow * Update src/panels/developer-tools/template/developer-tools-template.ts Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com> * Update src/panels/developer-tools/template/developer-tools-template.ts Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com> * Update developer-tools-template.ts * Update src/panels/developer-tools/template/developer-tools-template.ts Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com> * Update developer-tools-template.ts * prettier * Update developer-tools-template.ts * Update developer-tools-template.ts * prettier * Update developer-tools-template.ts * prettier * prettier * Update developer-tools-template.ts * prettier * prettier * prettier * Update developer-tools-template.ts --------- Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com> --- .../template/developer-tools-template.ts | 55 +++++++++++++------ 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/src/panels/developer-tools/template/developer-tools-template.ts b/src/panels/developer-tools/template/developer-tools-template.ts index f16f77bd1f4b..f3bf5336bb1c 100644 --- a/src/panels/developer-tools/template/developer-tools-template.ts +++ b/src/panels/developer-tools/template/developer-tools-template.ts @@ -181,17 +181,21 @@ class HaPanelDevTemplate extends LitElement { >` : nothing} ${this._templateResult - ? html`${this.hass.localize( - "ui.panel.developer-tools.tabs.templates.result_type" - )}: - ${resultType} - -
${type === "object" - ? JSON.stringify(this._templateResult.result, null, 2) - : this._templateResult.result}+ ? html`
+ ${type === "object" + ? JSON.stringify(this._templateResult.result, null, 2) + : this._templateResult.result}+
+ ${this.hass.localize( + "ui.panel.developer-tools.tabs.templates.result_type" + )}: + ${resultType} +
${this._templateResult.listeners.time ? html`
@@ -249,11 +253,11 @@ class HaPanelDevTemplate extends LitElement {
`
: !this._templateResult.listeners.time
- ? html`
+ ? html`
${this.hass.localize(
"ui.panel.developer-tools.tabs.templates.no_listeners"
)}
-