Skip to content

Commit

Permalink
use input group for remove button
Browse files Browse the repository at this point in the history
  • Loading branch information
tomboe311 committed Apr 5, 2021
1 parent 763e49d commit 2da5f6c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/components/GameConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ app.component('game-configuration', {
v-for="(player, index) in players"
:key=index
class="form-group row">
<div class="col-10">
<input
v-on:keyup="updatePlayer(index, $event.target.value)"
:id="'pl_' + index"
class="form-control"
type="text"
name="player[]"
:placeholder="[[ player ]]">
</div>
<div class="col">
<button v-on:click="remove(index)" class="btn btn-sm btn-outline-danger">X</button>
<div class="col-12">
<div class="input-group">
<input
v-on:keyup="updatePlayer(index, $event.target.value)"
:id="'pl_' + index"
class="form-control"
type="text"
name="player[]"
:placeholder="[[ player ]]">
<button v-on:click="remove(index)" class="input-group-addon btn btn-sm btn-outline-danger">Remove</button>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 2da5f6c

Please sign in to comment.