fix card image scaling problem

This commit is contained in:
Juraj Michalek
2014-12-28 09:14:36 +00:00
parent 7eb7cc83ad
commit aa9bff09b6
2 changed files with 10 additions and 2 deletions

View File

@@ -72,8 +72,16 @@ flippy.fancy {
height: 150px;
}
flippy.fancy img {
width:auto;
max-width:100%;
height:auto;
max-height:100%;
vertical-align: middle;
}
.cardHelper {
display: inline-block;
height: 100%;
width: 100%;
vertical-align: middle;
}
flippy.fancy flippy-front {
float: none;

View File

@@ -56,7 +56,7 @@
</flippy-front>
<flippy-back>
<img ng-src="img/cards/{{card.cardId}}.png" ng-show="card.cardType == 'picture'">
<span class="cardHelper"></span><img ng-src="img/cards/{{card.cardId}}.png" ng-show="card.cardType == 'picture'"></span>
<div ng-hide="card.cardType == 'picture'">{{card.card['en-US']}}</div>
</flippy-back>