mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Fix date-range-picker overflow on energy dashboard small screen (#19026)
This commit is contained in:
parent
ddf6945190
commit
cdd2c7be9a
@ -145,6 +145,8 @@ class DateRangePickerElement extends WrappedElement {
|
|||||||
);
|
);
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
min-width: initial !important;
|
min-width: initial !important;
|
||||||
|
max-height: var(--date-range-picker-max-height);
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
.daterangepicker:before {
|
.daterangepicker:before {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -141,6 +141,7 @@ class PanelEnergy extends LitElement {
|
|||||||
padding-inline-start: 32px;
|
padding-inline-start: 32px;
|
||||||
--disabled-text-color: rgba(var(--rgb-text-primary-color), 0.5);
|
--disabled-text-color: rgba(var(--rgb-text-primary-color), 0.5);
|
||||||
direction: var(--direction);
|
direction: var(--direction);
|
||||||
|
--date-range-picker-max-height: calc(100vh - 80px);
|
||||||
}
|
}
|
||||||
:host([narrow]) hui-energy-period-selector {
|
:host([narrow]) hui-energy-period-selector {
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user