mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Remove layout options for media player (#21258)
This commit is contained in:
parent
82329833f5
commit
19ee150395
@ -40,11 +40,7 @@ import { findEntities } from "../common/find-entities";
|
|||||||
import { hasConfigOrEntityChanged } from "../common/has-changed";
|
import { hasConfigOrEntityChanged } from "../common/has-changed";
|
||||||
import "../components/hui-marquee";
|
import "../components/hui-marquee";
|
||||||
import { createEntityNotFoundWarning } from "../components/hui-warning";
|
import { createEntityNotFoundWarning } from "../components/hui-warning";
|
||||||
import type {
|
import type { LovelaceCard, LovelaceCardEditor } from "../types";
|
||||||
LovelaceCard,
|
|
||||||
LovelaceCardEditor,
|
|
||||||
LovelaceLayoutOptions,
|
|
||||||
} from "../types";
|
|
||||||
import { MediaControlCardConfig } from "./types";
|
import { MediaControlCardConfig } from "./types";
|
||||||
|
|
||||||
@customElement("hui-media-control-card")
|
@customElement("hui-media-control-card")
|
||||||
@ -586,15 +582,6 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public getLayoutOptions(): LovelaceLayoutOptions {
|
|
||||||
return {
|
|
||||||
grid_columns: 4,
|
|
||||||
grid_min_columns: 2,
|
|
||||||
grid_rows: 3,
|
|
||||||
grid_min_rows: 3,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static get styles(): CSSResultGroup {
|
||||||
return css`
|
return css`
|
||||||
ha-card {
|
ha-card {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user