mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -631,6 +631,7 @@ class HaPanelHistory extends LitElement {
|
||||
|
||||
:host([virtualize]) {
|
||||
height: 100%;
|
||||
--ha-generic-picker-max-width: 400px;
|
||||
}
|
||||
|
||||
.progress-wrapper {
|
||||
|
||||
@@ -303,6 +303,9 @@ export class HaPanelLogbook extends LitElement {
|
||||
return [
|
||||
haStyle,
|
||||
css`
|
||||
:host {
|
||||
--ha-generic-picker-max-width: 400px;
|
||||
}
|
||||
ha-logbook {
|
||||
height: calc(
|
||||
100vh -
|
||||
|
||||
Reference in New Issue
Block a user