Skip to content

Commit

Permalink
changed to ShortDateTimeWithYear and display date select button for m…
Browse files Browse the repository at this point in the history
…obiles
  • Loading branch information
boern99 committed Nov 23, 2024
1 parent bd559aa commit 352a868
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/components/ha-date-range-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { ifDefined } from "lit/directives/if-defined";
import { calcDate } from "../common/datetime/calc_date";
import { firstWeekdayIndex } from "../common/datetime/first_weekday";
import { formatDate } from "../common/datetime/format_date";
import { formatDateTime } from "../common/datetime/format_date_time";
import { formatShortDateTimeWithYear } from "../common/datetime/format_date_time";
import { useAmPm } from "../common/datetime/use_am_pm";
import type { HomeAssistant } from "../types";
import "./date-range-picker";
Expand Down Expand Up @@ -261,7 +261,7 @@ export class HaDateRangePicker extends LitElement {
)}
>
${this.timePicker
? formatDateTime(
? formatShortDateTimeWithYear(
this.startDate,
this.hass.locale,
this.hass.config
Expand All @@ -279,7 +279,7 @@ export class HaDateRangePicker extends LitElement {
)}
>
${this.timePicker
? formatDateTime(
? formatShortDateTimeWithYear(
this.endDate,
this.hass.locale,
this.hass.config
Expand Down Expand Up @@ -472,15 +472,10 @@ export class HaDateRangePicker extends LitElement {
ha-textfield {
min-width: inherit;
}
ha-svg-icon {
display: none;
}
}
@media only screen and (max-width: 400px) {
.prev,
.next {
@media only screen and (max-width: 380px) {
.label {
display: none;
}
}
Expand Down

0 comments on commit 352a868

Please sign in to comment.