<h4>
is block element as like div so it covers all width.
Wrap panel-heading
div inside row and then provided 12 column calculation to that div
HTML
<div class="panel-heading row">
<h4 class="col-xs-9">Panel header</h4>
<div class="btn-group pull-right col-xs-3">
<a href="#" class="btn btn-default btn-sm">## Lock</a>
<a href="#" class="btn btn-default btn-sm">## Delete</a>
<a href="#" class="btn btn-default btn-sm">## Move</a>
</div>
</div>
Working solution with your code
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…