From c4ba279b6aa2f2cf8895f6574f940859d97c4aa0 Mon Sep 17 00:00:00 2001 From: Blair H <1585872+blairun@users.noreply.github.com> Date: Mon, 14 Mar 2022 15:04:10 +0000 Subject: [PATCH 1/2] automation description text overflow --- src/components/ha-textarea.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ha-textarea.ts b/src/components/ha-textarea.ts index 2a3bf1a040e0..87426f3e26e4 100644 --- a/src/components/ha-textarea.ts +++ b/src/components/ha-textarea.ts @@ -20,7 +20,8 @@ export class HaTextArea extends TextAreaBase { textareaStyles, css` :host([autogrow]) { - max-height: 200px; + max-height: 300px; + overflow-y: auto; } :host([autogrow]) .mdc-text-field { position: relative; From 58ac9e42ff5245b73275a79ce2db567fcc1d1fa4 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 30 Mar 2022 12:10:16 +0200 Subject: [PATCH 2/2] Move to .mdc-text-field --- src/components/ha-textarea.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/ha-textarea.ts b/src/components/ha-textarea.ts index 87426f3e26e4..ce7c1539ebb5 100644 --- a/src/components/ha-textarea.ts +++ b/src/components/ha-textarea.ts @@ -19,14 +19,11 @@ export class HaTextArea extends TextAreaBase { textfieldStyles, textareaStyles, css` - :host([autogrow]) { - max-height: 300px; - overflow-y: auto; - } :host([autogrow]) .mdc-text-field { position: relative; min-height: 74px; min-width: 178px; + max-height: 200px; } :host([autogrow]) .mdc-text-field:after { content: attr(data-value);