Skip to content

Commit 6581c56

Browse files
authored
Merge pull request #86 from adyNabeelMadain/master
fix layout 5 & 7 when icon is used
2 parents f61e071 + f14ac44 commit 6581c56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

widget/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
<div class="list-item-media text-center">
180180
<div class="list-media-holder">
181181
<img load-image="1x1" data-final-src="{{ plugin.iconUrl }}" crop-width="320" crop-height="320" crop-type="crop" ng-if="plugin.iconUrl" ng-style="{'min-height': ((1 * deviceWidth / 1)/2)-12 + 'px' }" />
182-
<span class="main-icon {{ plugin.iconClassName }}" ng-if="plugin.iconClassName" ng-style="{'font-size': ((1 * deviceWidth / 1)/2)-12 + 'px' }"></span>
182+
<span class="main-icon {{ plugin.iconClassName }}" ng-if="plugin.iconClassName" ng-style="{'font-size': ((1 * deviceWidth / 1)/2)-4 + 'px' }"></span>
183183
</div>
184184
<div class="info-bar titleBarBackgroundTheme" ng-if="data.design.hideText!==undefined? !data.design.hideText: '' ">
185185
<p class="margin-bottom-zero col-md-12 ellipsis titleBarTextAndIcons">
@@ -230,7 +230,7 @@
230230
<div class="plugin-slide text-center">
231231
<div class="backgroundLayer" style="background:url('{{ cropImage(plugin.iconUrl? plugin.iconUrl : '../../../styles/media/holder-239x1.png', {width: 512, height: 210}) }}');"></div>
232232
<img load-image="239x1" data-final-src="{{plugin.iconUrl}}" crop-width="512" crop-height="210" crop-type="crop" ng-if="plugin.iconUrl" ng-style="{'min-height': (1 * deviceWidth / 4)-12 + 'px' }">
233-
<span class="main-icon {{ plugin.iconClassName }}" ng-if="plugin.iconClassName" ng-style="{'font-size': (1 * deviceWidth / 4)-12 + 'px' }"></span>
233+
<span class="main-icon {{ plugin.iconClassName }}" ng-if="plugin.iconClassName" ng-style="{'font-size': (1 * deviceWidth / 17)-1 + 'vh' }"></span>
234234
</div>
235235
<div class="info-bar blackBackgroundTheme" ng-if="data.design.hideText!==undefined? !data.design.hideText: '' ">
236236
<p class="margin-bottom-zero col-md-12 ellipsis whiteTheme">{{ plugin.title }}</p>

0 commit comments

Comments
 (0)