Fix image scaling in infoscreen

References #32
This commit is contained in:
Juhana
2017-03-01 16:19:51 +02:00
parent c037fa0bbb
commit 6834e4d940
2 changed files with 3 additions and 18 deletions
+1 -15
View File
@@ -12,23 +12,9 @@
height:100%;
}
.img-container{
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
.fit {
position:absolute;
top: 50%;
left: 50%;
width: 100%;
min-height: 100%;
height: auto;
margin: auto;
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
height: 100%;
}
.swap-animation.ng-enter, .swap-animation.ng-leave {
+2 -3
View File
@@ -1,4 +1,3 @@
<div class="img-container">
<img ng-src="{{ img }}" class="fit"/>
</div>
<img ng-src="{{ img }}" class="fit"/>