I have a gridview like this
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'st_hourly_payable',
'format' => 'currency',
'contentOptions' => ['style' => 'max-width: 50px']
],
[
'attribute' => 'ot_hourly_payable',
'format' => 'currency',
'contentOptions' => ['style' => 'max-width: 50px']
],
[
'attribute' => 'dt_hourly_payable',
'format' => 'currency',
'contentOptions' => ['style' => 'max-width: 50px']
],
[
'attribute' => 'st_hourly_billable',
'format' => 'currency',
'contentOptions' => ['style' => 'max-width: 50px']
],
[
'attribute' => 'ot_hourly_billable',
'format' => 'currency',
'contentOptions' => ['style' => 'max-width: 50px']
],
[
'attribute' => 'dt_hourly_billable',
'format' => 'raw',
'contentOptions' => ['style' => 'max-width: 50px']
],
please see the attached screenshot. I can not make these columns (‘st_hourly_payable’, ‘ot_hourly_payable’ etc…) smaller at all.