1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-19 18:28:42 +00:00

Fix target picker area in history/activity (#28474)

* Add max target picker width for history and activity

* Fix target picker  area selection in history and activity
This commit is contained in:
Wendelin
2025-12-10 16:59:35 +01:00
committed by GitHub
parent f649b3783d
commit 6891eb9ff8
4 changed files with 8 additions and 4 deletions

View File

@@ -367,7 +367,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;

View File

@@ -964,10 +964,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;

View File

@@ -632,6 +632,7 @@ class HaPanelHistory extends LitElement {
:host([virtualize]) {
height: 100%;
--ha-generic-picker-max-width: 400px;
}
.progress-wrapper {

View File

@@ -303,6 +303,9 @@ export class HaPanelLogbook extends LitElement {
return [
haStyle,
css`
:host {
--ha-generic-picker-max-width: 400px;
}
ha-logbook {
height: calc(
100vh -