mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Calendar-card fix (#12532)
This commit is contained in:
parent
f5864181af
commit
1369c1ae8c
@ -11,14 +11,7 @@ import listPlugin from "@fullcalendar/list";
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import listStyle from "@fullcalendar/list/main.css";
|
import listStyle from "@fullcalendar/list/main.css";
|
||||||
import "@material/mwc-button";
|
import "@material/mwc-button";
|
||||||
import {
|
import { mdiViewAgenda, mdiViewDay, mdiViewModule, mdiViewWeek } from "@mdi/js";
|
||||||
mdiChevronLeft,
|
|
||||||
mdiChevronRight,
|
|
||||||
mdiViewAgenda,
|
|
||||||
mdiViewDay,
|
|
||||||
mdiViewModule,
|
|
||||||
mdiViewWeek,
|
|
||||||
} from "@mdi/js";
|
|
||||||
import {
|
import {
|
||||||
css,
|
css,
|
||||||
CSSResultGroup,
|
CSSResultGroup,
|
||||||
@ -33,7 +26,6 @@ import memoize from "memoize-one";
|
|||||||
import { useAmPm } from "../../common/datetime/use_am_pm";
|
import { useAmPm } from "../../common/datetime/use_am_pm";
|
||||||
import { fireEvent } from "../../common/dom/fire_event";
|
import { fireEvent } from "../../common/dom/fire_event";
|
||||||
import "../../components/ha-button-toggle-group";
|
import "../../components/ha-button-toggle-group";
|
||||||
import "../../components/ha-icon-button";
|
|
||||||
import "../../components/ha-icon-button-prev";
|
import "../../components/ha-icon-button-prev";
|
||||||
import "../../components/ha-icon-button-next";
|
import "../../components/ha-icon-button-next";
|
||||||
import { haStyle } from "../../resources/styles";
|
import { haStyle } from "../../resources/styles";
|
||||||
@ -152,20 +144,18 @@ export class HAFullCalendar extends LitElement {
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<h1>${this.calendar.view.title}</h1>
|
<h1>${this.calendar.view.title}</h1>
|
||||||
<div>
|
<div>
|
||||||
<ha-icon-button
|
<ha-icon-button-prev
|
||||||
.label=${this.hass.localize("ui.common.previous")}
|
.label=${this.hass.localize("ui.common.previous")}
|
||||||
.path=${mdiChevronLeft}
|
|
||||||
class="prev"
|
class="prev"
|
||||||
@click=${this._handlePrev}
|
@click=${this._handlePrev}
|
||||||
>
|
>
|
||||||
</ha-icon-button>
|
</ha-icon-button-prev>
|
||||||
<ha-icon-button
|
<ha-icon-button-next
|
||||||
.label=${this.hass.localize("ui.common.next")}
|
.label=${this.hass.localize("ui.common.next")}
|
||||||
.path=${mdiChevronRight}
|
|
||||||
class="next"
|
class="next"
|
||||||
@click=${this._handleNext}
|
@click=${this._handleNext}
|
||||||
>
|
>
|
||||||
</ha-icon-button>
|
</ha-icon-button-next>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user