diff --git a/src/components/ha-settings-row.ts b/src/components/ha-settings-row.ts
index f8ebeb0870..a516ff6c3b 100644
--- a/src/components/ha-settings-row.ts
+++ b/src/components/ha-settings-row.ts
@@ -8,6 +8,9 @@ export class HaSettingsRow extends LitElement {
@property({ type: Boolean, attribute: "three-line" })
public threeLine = false;
+ @property({ type: Boolean, attribute: "wrap-heading", reflect: true })
+ public wrapHeading = false;
+
protected render(): TemplateResult {
return html`
@@ -51,7 +54,7 @@ export class HaSettingsRow extends LitElement {
.body[three-line] {
min-height: var(--paper-item-body-three-line-min-height, 88px);
}
- .body > * {
+ :host(:not([wrap-heading])) > * {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
diff --git a/src/panels/config/cloud/account/cloud-account.ts b/src/panels/config/cloud/account/cloud-account.ts
index 8f11c1b8d2..8f8a27fe25 100644
--- a/src/panels/config/cloud/account/cloud-account.ts
+++ b/src/panels/config/cloud/account/cloud-account.ts
@@ -187,6 +187,7 @@ export class CloudAccount extends SubscribeMixin(LitElement) {
diff --git a/src/panels/config/cloud/account/cloud-remote-pref.ts b/src/panels/config/cloud/account/cloud-remote-pref.ts
index 248eba37c7..86cbfe5ce8 100644
--- a/src/panels/config/cloud/account/cloud-remote-pref.ts
+++ b/src/panels/config/cloud/account/cloud-remote-pref.ts
@@ -32,6 +32,8 @@ export class CloudRemotePref extends LitElement {
@property({ attribute: false }) public cloudStatus?: CloudStatusLoggedIn;
+ @property({ type: Boolean }) public narrow = false;
+
@state() private _unmaskedUrl = false;
protected render() {
@@ -229,11 +231,15 @@ export class CloudRemotePref extends LitElement {
${this.hass.localize(
"ui.panel.config.cloud.account.remote.strict_connection_option_guard_page_secondary"
)}
-
- ⚠️
- ${this.hass.localize(
- "ui.panel.config.cloud.account.remote.strict_connection_option_guard_page_warning"
- )}
+ ${strict_connection === "guard_page"
+ ? html`
+
+ ⚠️
+ ${this.hass.localize(
+ "ui.panel.config.cloud.account.remote.strict_connection_option_guard_page_warning"
+ )}
+ `
+ : nothing}
@@ -255,11 +261,15 @@ export class CloudRemotePref extends LitElement {
${this.hass.localize(
"ui.panel.config.cloud.account.remote.strict_connection_option_drop_connection_secondary"
)}
-
- ⚠️
- ${this.hass.localize(
- "ui.panel.config.cloud.account.remote.strict_connection_option_drop_connection_warning"
- )}
+ ${strict_connection === "drop_connection"
+ ? html`
+
+ ⚠️
+ ${this.hass.localize(
+ "ui.panel.config.cloud.account.remote.strict_connection_option_drop_connection_warning"
+ )}
+ `
+ : nothing}
@@ -267,7 +277,7 @@ export class CloudRemotePref extends LitElement {
${strict_connection !== "disabled"
? html`
-
+
${this.hass.localize(
"ui.panel.config.cloud.account.remote.strict_connection_link"
@@ -288,7 +298,7 @@ export class CloudRemotePref extends LitElement {
: nothing}
-
+
${this.hass.localize(
"ui.panel.config.cloud.account.remote.external_activation"
@@ -305,7 +315,7 @@ export class CloudRemotePref extends LitElement {
>
-
+
${this.hass.localize(
"ui.panel.config.cloud.account.remote.certificate_info"
@@ -494,6 +504,7 @@ export class CloudRemotePref extends LitElement {
}
ha-settings-row {
padding: 0;
+ border-top: none !important;
}
ha-expansion-panel {
--expansion-panel-content-padding: 0 16px;
@@ -543,6 +554,7 @@ export class CloudRemotePref extends LitElement {
.strict-connection-container .primary {
font-size: 14px;
margin-top: 12px;
+ margin-bottom: 4px;
}
.strict-connection-container .secondary {
color: var(--secondary-text-color);
diff --git a/src/panels/config/cloud/account/cloud-tts-pref.ts b/src/panels/config/cloud/account/cloud-tts-pref.ts
index fe716b9a5d..4013d56472 100644
--- a/src/panels/config/cloud/account/cloud-tts-pref.ts
+++ b/src/panels/config/cloud/account/cloud-tts-pref.ts
@@ -188,6 +188,7 @@ export class CloudTTSPref extends LitElement {
}
.row > * {
flex: 1;
+ width: 0;
}
.row > *:first-child {
margin-right: 8px;