How can I make bootstrap input-group input element width dynamic? I tried setting width: auto; but the input-group still seems to have a set width.
<form class="col-sm-12 form-horizontal">
<div class="col-sm-6">
<ul class="form-group list-inline list-unstyled">
<li class="" ng-repeat="item in items">
<div class="input-group list-item">
<input type="text" readonly="" class="form-control" value="{{item}}" />
<div class="input-group-btn">
<button type="button" class="btn btn-default" ng-click="removeExpedition(item)">
<span class="glyphicon glyphicon-remove"></span>
</button>
</div>
</div>
</li>
</ul>
</div>
</form>
and css:
.list-item>.input-group-btn {
width: auto;
}
Here is a plunker to demonstrate. See all the whitespace between the input and button. I would like to have the button right next to the input element, with a set padding.