Fix drag and drop entities on firefox (#13518)

This commit is contained in:
Paul Bottein 2022-08-30 17:34:18 +02:00 committed by GitHub
parent 8fd99fcb15
commit e861460318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -74,7 +74,9 @@ export class HuiEntitiesCardRowEditor extends LitElement {
: this.entities!.map(
(entityConf, index) => html`
<div class="entity">
<ha-svg-icon class="handle" .path=${mdiDrag}></ha-svg-icon>
<div class="handle">
<ha-svg-icon .path=${mdiDrag}></ha-svg-icon>
</div>
${entityConf.type
? html`
<div class="special-row">
@ -277,6 +279,9 @@ export class HuiEntitiesCardRowEditor extends LitElement {
padding-inline-start: initial;
direction: var(--direction);
}
.entity .handle > * {
pointer-events: none;
}
.entity ha-entity-picker {
flex-grow: 1;