|
7 | 7 | <div class="card-name">
|
8 | 8 | <a @click="selectEntity(card)" :class="{'selected': card.selected, 'targetable': doingAction && targets.indexOf(card.id) !== -1}">{{card.properties.name}}</a>
|
9 | 9 | </div>
|
10 |
| - |
11 | 10 | </div>
|
12 | 11 | <!-- card image -->
|
13 | 12 | <div style="clear:both;">
|
|
57 | 56 | </div>
|
58 | 57 | <!-- flavor text -->
|
59 | 58 | <div v-show="card.properties.flavor" style="float: right; padding: 5px; text-align: center;">
|
60 |
| - <b-btn type="button" class="btn btn-sm btn-dark fa fa-book" |
61 |
| - popover-placement="top" |
62 |
| - v-b-popover.hover="card.properties.flavor"></b-btn> |
| 59 | + <b-btn class="btn btn-sm btn-dark fa fa-book" :id="`${card.id}-flavor`"></b-btn> |
| 60 | + <b-popover :target="`${card.id}-flavor`" |
| 61 | + :title="card.properties.name" |
| 62 | + triggers="hover focus" |
| 63 | + :content="card.properties.flavor" |
| 64 | + placement="bottomleft"> |
| 65 | + </b-popover> |
63 | 66 | </div>
|
64 | 67 | <!-- effect text -->
|
65 | 68 | <div v-show="card.properties.effect" style="float: right; padding: 5px; text-align: center;">
|
66 |
| - <b-btn type="button" class="btn btn-sm btn-secondary fa fa-flash" |
67 |
| - popover-placement="top" |
68 |
| - v-b-popover.hover="card.properties.effect">FX</b-btn> |
| 69 | + <b-btn class="btn btn-sm btn-secondary fa fa-flash" :id="`${card.id}-effect`">FX</b-btn> |
| 70 | + <b-popover :target="`${card.id}-effect`" |
| 71 | + :title="card.properties.name" |
| 72 | + triggers="hover focus" |
| 73 | + :content="card.properties.effect" |
| 74 | + placement="bottomleft"> |
| 75 | + </b-popover> |
69 | 76 | </div>
|
70 | 77 | </div>
|
71 | 78 | <div class="card-actions">
|
72 |
| - <button class="btn btn-sm btn-navbar csh-button btn-default" v-for="action in actions" |
| 79 | + <button class="btn btn-sm btn-navbar" v-for="action in actions" |
73 | 80 | :key="action.action"
|
74 | 81 | v-if="!doingAction && action.id === card.id"
|
75 | 82 | @click="startAction(action)">
|
|
0 commit comments