diff --git a/src/components/ha-date-range-picker.ts b/src/components/ha-date-range-picker.ts index 965c3c0cd6..884c893d56 100644 --- a/src/components/ha-date-range-picker.ts +++ b/src/components/ha-date-range-picker.ts @@ -163,13 +163,6 @@ export class HaDateRangePicker extends LitElement { border-right: 1px solid var(--divider-color); } - @media only screen and (max-width: 800px) { - .date-range-ranges { - border-right: none; - border-bottom: 1px solid var(--divider-color); - } - } - .date-range-footer { display: flex; justify-content: flex-end; @@ -179,12 +172,30 @@ export class HaDateRangePicker extends LitElement { paper-input { display: inline-block; - max-width: 200px; + max-width: 250px; + min-width: 200px; } paper-input:last-child { margin-left: 8px; } + + @media only screen and (max-width: 800px) { + .date-range-ranges { + border-right: none; + border-bottom: 1px solid var(--divider-color); + } + } + + @media only screen and (max-width: 500px) { + paper-input { + min-width: inherit; + } + + ha-svg-icon { + display: none; + } + } `; } }