Skip to content

Commit d09f851

Browse files
authored
Merge pull request #55 from vish250491/master
Fixed background image not showing when inherit option selected, #122088749
2 parents d5eac3a + a05a1de commit d09f851

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

widget/index.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@
2121

2222
</head>
2323
<body ng-cloak class="gridLayout" ng-controller="folderPluginCtrl">
24-
<style type="text/css" media="screen" ng-if="data.design.colorType === 'C'">
25-
body.gridLayout {
26-
background-color: {{data.design.colors.backgroundColor}} !important;
27-
background-image: url({{backgroundImage}}) !important;
28-
background-size:cover !important;
24+
<style type="text/css" media="screen" ng-if="data.design.colorType === 'A'">
25+
body.gridLayout {
26+
background-image: url({{backgroundImage}}) !important;
27+
background-size:cover !important;
2928
}
3029
</style>
31-
<style ng-if="data.design.colorType === 'C'">
30+
<style type="text/css" media="screen" ng-if="data.design.colorType === 'C'">
31+
body.gridLayout {
32+
background-color: {{data.design.colors.backgroundColor}} !important;
33+
background-image: url({{backgroundImage}}) !important;
34+
background-size:cover !important;
35+
}
36+
3237
/* Show theme css only if on custom theme option */
3338
div.text-holder p, .launcher-plugin.layout7 .menu-links .menu-item p {
3439
color: {{data.design.colors.bodyText}} !important;
@@ -38,7 +43,6 @@
3843
color: {{data.design.colors.icons}} !important;
3944
}
4045
</style>
41-
<style></style>
4246
<!--<div class="overlay background" ng-if="data.design.selectedLayout !== 7 && backgroundImage">
4347
<img lazy-img="{{backgroundImage}}" style="position: absolute;">
4448
</div>-->
@@ -358,7 +362,6 @@
358362

359363
function dataLoadedHandler(result) {
360364
var pluginsList = null;
361-
console.log("---------------aaaaaaaaaa", result)
362365
if (result && result.data && !angular.equals({}, result.data) && result.data.content && result.data.design) {
363366
if (result.data.content && result.data.content.loadAllPlugins) {
364367
buildfire.components.pluginInstance.getAllPlugins(function (err, res) {

0 commit comments

Comments
 (0)