Skip to content

Commit 0a4a7f4

Browse files
authored
Merge pull request #1050 from proditis/master
make card follow col size of parent page
2 parents aa023f1 + 5211490 commit 0a4a7f4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

frontend/themes/material/modules/team/views/default/_team_card.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
]);
1414

1515
?>
16-
<div class="col col-lg-4 col-md-6 col-sm-6 d-flex align-items-stretch">
1716
<div class="card card-profile team-card bg-dark">
1817
<div class="card-icon bg-dark">
1918
<img class="img rounded-circle bg-dark" src="/images/avatars/team/<?= $model->validLogo ?>" height="100vw" style="max-height: 100vw"/>
@@ -82,5 +81,4 @@
8281
<?php endif; ?></center>
8382
</p>
8483
</div>
85-
</div>
86-
</div>
84+
</div>

frontend/themes/material/modules/team/views/default/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
'dataProvider' => $dataProvider,
2525
'emptyText' => '<p class="text-warning"><b>' . \Yii::t('app', 'Oh! no, there are no teams... Quickly create one :)') . '</b></p>',
2626
'options' => ['tag' => false,],
27-
'itemOptions' => ['tag' => false],
27+
'itemOptions' => ['tag' => 'div','class'=>'col col-lg-4 col-md-6 col-sm-6 d-flex align-items-stretch'],
2828
'summary' => false,
2929
'itemView' => '_team_card',
3030
'viewParams' => ['invite' => false],

0 commit comments

Comments
 (0)