I am trying to make it so my grid of md-cards have different heights depending on their image. Right now if one image is taller the entire row of cards match that height, making for a wonky look. What can I do to make the card content inside the <md-card>
not stretch to match the row?
Here is the html for the cards:
<section class="cards" ng-if="view === 'Articles'">
<div layout="row" layout-align="center stretch" layout-wrap>
<md-card ng-repeat="article in home.articles | filter:searchCard | orderBy:'-negPos'">
<a ng-href="/article/{{article.id}}"><img ng-src="{{article.imagePath}}" class="card-image" alt="Article image"></a>
<div class="card_content">
<div class="article_card_title">
<a ng-href="/article/{{article.id}}"><h3 class="md-subhead">{{article.title}}</h3></a>
</div>
<div class="card_agency">
<span class="agency_name">{{article.agency}}</span>
</div>
</div>
<div class="card_ratings">
<div>
<img src="{{article.negPosBar}}">
<md-tooltip md-direction="'bottom'">
</div>
<div>
<img src="{{article.skewBar}}">
</div>
<div>
<img src="{{article.contBar}}">
</div>
</div>
</md-card>
<h1 class="md-display-1" ng-show="(home.articles | filter:searchCard).length == 0">No results!</h1>
</div>
</section>
And the css:
md-card {
width: 375px;
border-radius: 3px;
}
.card_content {
padding-left: 10px;
height: 100%;
}