Skip to content

Commit

Permalink
remove inline style
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Oct 27, 2023
1 parent 9ec714a commit 83993df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/panels/todo/ha-panel-todo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ class PanelTodo extends LitElement {
@click=${this._handleEntityPicked}
.entityId=${list.entity_id}
.activated=${list.entity_id === this._entityId}
style=${!showPane && !this.mobile
? "max-width: calc(100vw - 120px)"
: ""}
>
<ha-state-icon .state=${list} slot="graphic"></ha-state-icon
>${list.name}
Expand Down Expand Up @@ -341,6 +338,9 @@ class PanelTodo extends LitElement {
:host([mobile]) .lists {
--mdc-menu-min-width: 100vw;
}
:host(:not([mobile])) .lists ha-list-item {
max-width: calc(100vw - 120px);
}
:host([mobile]) ha-button-menu {
--mdc-shape-medium: 0 0 var(--mdc-shape-medium)
var(--mdc-shape-medium);
Expand Down

0 comments on commit 83993df

Please sign in to comment.