Skip to content

Commit d80c2d2

Browse files
committed
fix flavor & FX popovers, action buttons
1 parent 27f64b8 commit d80c2d2

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

src/components/CardModel.vue

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<div class="card-name">
88
<a @click="selectEntity(card)" :class="{'selected': card.selected, 'targetable': doingAction && targets.indexOf(card.id) !== -1}">{{card.properties.name}}</a>
99
</div>
10-
1110
</div>
1211
<!-- card image -->
1312
<div style="clear:both;">
@@ -57,19 +56,27 @@
5756
</div>
5857
<!-- flavor text -->
5958
<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>
6366
</div>
6467
<!-- effect text -->
6568
<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>
6976
</div>
7077
</div>
7178
<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"
7380
:key="action.action"
7481
v-if="!doingAction && action.id === card.id"
7582
@click="startAction(action)">

0 commit comments

Comments
 (0)