mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-28 04:56: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 {
|
||||
padding: 8px 16px;
|
||||
}
|
||||
state-card-content {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
@ -19,8 +17,8 @@
|
||||
<ha-card header='[[computeDomainTitle(domain)]]'>
|
||||
<div class='states'>
|
||||
<template is='dom-repeat' items="[[states]]">
|
||||
<div class='state'>
|
||||
<state-card-content class="state-card" state-obj="[[item]]" on-tap='entityTapped'></state-card-content>
|
||||
<div class='state' on-tap='entityTapped'>
|
||||
<state-card-content class="state-card" state-obj="[[item]]"></state-card-content>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
@ -22,7 +22,7 @@ export default new Polymer({
|
||||
|
||||
entityTapped(ev) {
|
||||
ev.stopPropagation();
|
||||
const entityId = ev.currentTarget.stateObj.entityId;
|
||||
const entityId = ev.model.item.entityId;
|
||||
this.async(() => moreInfoActions.selectEntity(entityId), 1);
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user