mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-29 13:36:35 +00:00
Increase tap target for states in domain card
This commit is contained in:
parent
2565ca8e35
commit
be2c83e017
@ -10,8 +10,6 @@
|
|||||||
}
|
}
|
||||||
.state {
|
.state {
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
}
|
|
||||||
state-card-content {
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -19,8 +17,8 @@
|
|||||||
<ha-card header='[[computeDomainTitle(domain)]]'>
|
<ha-card header='[[computeDomainTitle(domain)]]'>
|
||||||
<div class='states'>
|
<div class='states'>
|
||||||
<template is='dom-repeat' items="[[states]]">
|
<template is='dom-repeat' items="[[states]]">
|
||||||
<div class='state'>
|
<div class='state' on-tap='entityTapped'>
|
||||||
<state-card-content class="state-card" state-obj="[[item]]" on-tap='entityTapped'></state-card-content>
|
<state-card-content class="state-card" state-obj="[[item]]"></state-card-content>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
@ -22,7 +22,7 @@ export default new Polymer({
|
|||||||
|
|
||||||
entityTapped(ev) {
|
entityTapped(ev) {
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
const entityId = ev.currentTarget.stateObj.entityId;
|
const entityId = ev.model.item.entityId;
|
||||||
this.async(() => moreInfoActions.selectEntity(entityId), 1);
|
this.async(() => moreInfoActions.selectEntity(entityId), 1);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user