From e9b2a8341142543941b0f5c366a8ab354c7d79d4 Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:03:19 +0300 Subject: [PATCH] Automation/Script editor border-radius fix (#23267) * Update ha-automation-action-row.ts * Update ha-automation-condition-row.ts * Update ha-automation-trigger-row.ts * Update ha-script-field-row.ts * Update ha-script-field-row.ts * Update ha-automation-condition-row.ts * Update ha-automation-trigger-row.ts * Update ha-automation-action-row.ts * Update ha-automation-trigger-row.ts * Update ha-automation-condition-row.ts * Update ha-automation-action-row.ts * Update ha-script-field-row.ts --- .../config/automation/action/ha-automation-action-row.ts | 5 +++-- .../automation/condition/ha-automation-condition-row.ts | 7 +++---- .../config/automation/trigger/ha-automation-trigger-row.ts | 7 +++---- src/panels/config/script/ha-script-field-row.ts | 5 +++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/panels/config/automation/action/ha-automation-action-row.ts b/src/panels/config/automation/action/ha-automation-action-row.ts index bd4fa868a18a..ebccfa306e20 100644 --- a/src/panels/config/automation/action/ha-automation-action-row.ts +++ b/src/panels/config/automation/action/ha-automation-action-row.ts @@ -614,6 +614,9 @@ export default class HaAutomationActionRow extends LitElement { ha-icon-button { --mdc-theme-text-primary-on-background: var(--primary-text-color); } + ha-card { + overflow: hidden; + } .disabled { opacity: 0.5; pointer-events: none; @@ -646,8 +649,6 @@ export default class HaAutomationActionRow extends LitElement { .disabled-bar { background: var(--divider-color, #e0e0e0); text-align: center; - border-top-right-radius: var(--ha-card-border-radius); - border-top-left-radius: var(--ha-card-border-radius); } mwc-list-item[disabled] { diff --git a/src/panels/config/automation/condition/ha-automation-condition-row.ts b/src/panels/config/automation/condition/ha-automation-condition-row.ts index 864a24fed4a7..8df41296e8f6 100644 --- a/src/panels/config/automation/condition/ha-automation-condition-row.ts +++ b/src/panels/config/automation/condition/ha-automation-condition-row.ts @@ -504,6 +504,9 @@ export default class HaAutomationConditionRow extends LitElement { ha-button-menu { --mdc-theme-text-primary-on-background: var(--primary-text-color); } + ha-card { + overflow: hidden; + } .disabled { opacity: 0.5; pointer-events: none; @@ -536,8 +539,6 @@ export default class HaAutomationConditionRow extends LitElement { .disabled-bar { background: var(--divider-color, #e0e0e0); text-align: center; - border-top-right-radius: var(--ha-card-border-radius); - border-top-left-radius: var(--ha-card-border-radius); } ha-list-item[disabled] { --mdc-theme-text-primary-on-background: var(--disabled-text-color); @@ -559,8 +560,6 @@ export default class HaAutomationConditionRow extends LitElement { overflow: hidden; transition: max-height 0.3s; text-align: center; - border-top-right-radius: var(--ha-card-border-radius, 12px); - border-top-left-radius: var(--ha-card-border-radius, 12px); } .testing.active { max-height: 100px; diff --git a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts index b45d776ba027..13efcbf7e7b5 100644 --- a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts +++ b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts @@ -651,6 +651,9 @@ export default class HaAutomationTriggerRow extends LitElement { ha-button-menu { --mdc-theme-text-primary-on-background: var(--primary-text-color); } + ha-card { + overflow: hidden; + } .disabled { opacity: 0.5; pointer-events: none; @@ -683,8 +686,6 @@ export default class HaAutomationTriggerRow extends LitElement { .disabled-bar { background: var(--divider-color, #e0e0e0); text-align: center; - border-top-right-radius: var(--ha-card-border-radius); - border-top-left-radius: var(--ha-card-border-radius); } .triggered { cursor: pointer; @@ -701,8 +702,6 @@ export default class HaAutomationTriggerRow extends LitElement { overflow: hidden; transition: max-height 0.3s; text-align: center; - border-top-right-radius: var(--ha-card-border-radius, 12px); - border-top-left-radius: var(--ha-card-border-radius, 12px); } .triggered.active { max-height: 100px; diff --git a/src/panels/config/script/ha-script-field-row.ts b/src/panels/config/script/ha-script-field-row.ts index 2542394ce953..e652b1f8cb76 100644 --- a/src/panels/config/script/ha-script-field-row.ts +++ b/src/panels/config/script/ha-script-field-row.ts @@ -295,6 +295,9 @@ export default class HaScriptFieldRow extends LitElement { ha-icon-button { --mdc-theme-text-primary-on-background: var(--primary-text-color); } + ha-card { + overflow: hidden; + } .disabled { opacity: 0.5; pointer-events: none; @@ -327,8 +330,6 @@ export default class HaScriptFieldRow extends LitElement { .disabled-bar { background: var(--divider-color, #e0e0e0); text-align: center; - border-top-right-radius: var(--ha-card-border-radius); - border-top-left-radius: var(--ha-card-border-radius); } ha-list-item[disabled] {