Skip to content

Commit 0894668

Browse files
authored
Merge pull request #72 from jdm135/master
Fix layout 6 UI.
2 parents 6ce225c + ca3eb66 commit 0894668

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

widget/css/style.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
}
4141

4242
/* List Layout Grids */
43-
.list-layout .list-item{
43+
/*.list-layout .list-item{
4444
padding-left:15px;
4545
padding-right:8px;
4646
}
4747
.list-layout .list-item + .list-item{
4848
padding-left:8px;
4949
padding-right:15px;
50-
}
50+
}*/
5151
.list-layout .list-item-media{
5252
position:relative;
5353
left:0;
@@ -93,9 +93,6 @@
9393
.list-layout.layout5 .list-item-media .list-media-holder img{
9494
max-height:100%;
9595
}
96-
.list-layout.layout-6 .list-item-media .list-media-holder{
97-
height:150px;
98-
}
9996
.list-layout.layout-6 .list-item-media .list-media-holder img{
10097
max-height:100%;
10198
}
@@ -106,6 +103,12 @@
106103
padding:10px 0;
107104
min-height:70px;
108105
}
106+
.list-layout .list-item-copy.with-text{
107+
min-height:42px;
108+
}
109+
.list-layout .list-item-copy.without-text{
110+
min-height:32px;
111+
}
109112
.list-layout .list-item-copy p.summary{
110113
font-size:13px;
111114
}

widget/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,17 @@
169169
<!-- End layout 5 -->
170170
<!-- Layout 6 -->
171171
<div class="padded padding-top-zero padding-bottom-zero" ng-if="data.design.selectedLayout == 6" style=" padding-top: 10px; ">
172-
<div class="list-layout layout-6">
172+
<div class="list-layout layout-6" ng-class="data.content.text?'':'margin-top-fifteen'">
173173
<div ng-repeat="pluginRow in data.plugins" class="row">
174-
<div class="list-item col-xs-6 pull-left" ng-repeat="plugin in pluginRow" ng-click="navigateToPlugin(plugin)" style="padding-top: 6px !important;">
174+
<div class="list-item col-xs-6 pull-left" ng-repeat="plugin in pluginRow" ng-click="navigateToPlugin(plugin)">
175175
<div class="list-item-media text-center overflow-hidden">
176176
<div class="list-media-holder">
177177
<img load-image="1x1" data-final-src="{{ plugin.iconUrl }}" crop-width="200" crop-height="200" crop-type="crop" ng-if="plugin.iconUrl"/>
178178
<img load-image="1x1" data-final-src="../../../styles/media/holder-1x1.png" ng-if="plugin.iconClassName" />
179179
</div>
180-
<div class="list-item-copy text-center padding-top-five" style="min-height: 42px;">
180+
<div class="list-item-copy text-center" ng-class="data.design.hideText==false?'with-text':'without-text'">
181181
<p class="ellipsis margin-zero text-primary">
182-
<a class="text-primary" ng-show="data.design.hideText==false">
182+
<a class="text-primary" ng-show="data.design.hideText==false">
183183
{{ plugin.title }}
184184
</a>
185185
</p>

0 commit comments

Comments
 (0)