diff --git a/src/components/ha-generic-picker.ts b/src/components/ha-generic-picker.ts index 6f955cb7e2..85117b91d2 100644 --- a/src/components/ha-generic-picker.ts +++ b/src/components/ha-generic-picker.ts @@ -344,7 +344,10 @@ export class HaGenericPicker extends LitElement { wa-popover::part(body) { width: max(var(--body-width), 250px); - max-width: max(var(--body-width), 250px); + max-width: var( + --ha-generic-picker-max-width, + max(var(--body-width), 250px) + ); max-height: 500px; height: 70vh; overflow: hidden; diff --git a/src/components/ha-target-picker.ts b/src/components/ha-target-picker.ts index 0d77a72695..28894efe76 100644 --- a/src/components/ha-target-picker.ts +++ b/src/components/ha-target-picker.ts @@ -952,10 +952,7 @@ export class HaTargetPicker extends SubscribeMixin(LitElement) { let hasFloor = false; let rtl = false; let showEntityId = false; - if (type === "area" || type === "floor") { - item.id = item[type]?.[`${type}_id`]; - rtl = computeRTL(this.hass); hasFloor = type === "area" && !!(item as FloorComboBoxItem).area?.floor_id; diff --git a/src/panels/history/ha-panel-history.ts b/src/panels/history/ha-panel-history.ts index c62e9142b9..09202895ca 100644 --- a/src/panels/history/ha-panel-history.ts +++ b/src/panels/history/ha-panel-history.ts @@ -631,6 +631,7 @@ class HaPanelHistory extends LitElement { :host([virtualize]) { height: 100%; + --ha-generic-picker-max-width: 400px; } .progress-wrapper { diff --git a/src/panels/logbook/ha-panel-logbook.ts b/src/panels/logbook/ha-panel-logbook.ts index 365731df37..1f8d5eb2f4 100644 --- a/src/panels/logbook/ha-panel-logbook.ts +++ b/src/panels/logbook/ha-panel-logbook.ts @@ -303,6 +303,9 @@ export class HaPanelLogbook extends LitElement { return [ haStyle, css` + :host { + --ha-generic-picker-max-width: 400px; + } ha-logbook { height: calc( 100vh -