fixing a regression where icons in a list would not display in their loading state
This commit is contained in:
parent
cb8685a340
commit
9dd695b6ca
2 changed files with 13 additions and 13 deletions
|
@ -82,17 +82,17 @@ Ox.IconList = function(options, self) {
|
||||||
updateKeys();
|
updateKeys();
|
||||||
|
|
||||||
function constructItem(data) {
|
function constructItem(data) {
|
||||||
var isEmpty = Ox.isEmpty(data),
|
var isEmpty = Ox.isEmpty(data);
|
||||||
data = !isEmpty
|
data = !isEmpty
|
||||||
? self.options.item(data, self.options.sort, self.options.size)
|
? self.options.item(data, self.options.sort, self.options.size)
|
||||||
: {
|
: {
|
||||||
width: Math.round(self.options.size * (
|
width: Math.round(self.options.size * (
|
||||||
self.options.defaultRatio >= 1 ? 1 : self.options.defaultRatio
|
self.options.defaultRatio >= 1 ? 1 : self.options.defaultRatio
|
||||||
)),
|
)),
|
||||||
height: Math.round(self.options.size / (
|
height: Math.round(self.options.size / (
|
||||||
self.options.defaultRatio <= 1 ? 1 : self.options.defaultRatio
|
self.options.defaultRatio <= 1 ? 1 : self.options.defaultRatio
|
||||||
))
|
))
|
||||||
};
|
};
|
||||||
return self.options.itemConstructor(Ox.extend(data, {
|
return self.options.itemConstructor(Ox.extend(data, {
|
||||||
borderRadius: self.options.borderRadius,
|
borderRadius: self.options.borderRadius,
|
||||||
iconHeight: self.iconHeight,
|
iconHeight: self.iconHeight,
|
||||||
|
|
|
@ -233,8 +233,8 @@ Lists
|
||||||
================================================================================
|
================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.OxThemeModern .OxIconList .OxItem > img.OxLoading,
|
.OxThemeModern .OxIconList .OxItem > .OxIcon > img.OxLoading,
|
||||||
.OxThemeModern .OxInfoList .OxIcon > img.OxLoading {
|
.OxThemeModern .OxInfoList .OxItem > .OxIcon > img.OxLoading {
|
||||||
border-color: rgb(48, 48, 48);
|
border-color: rgb(48, 48, 48);
|
||||||
background: -moz-linear-gradient(top, rgb(32, 32, 32), rgb(0, 0, 0));
|
background: -moz-linear-gradient(top, rgb(32, 32, 32), rgb(0, 0, 0));
|
||||||
background: -webkit-linear-gradient(top, rgb(32, 32, 32), rgb(0, 0, 0));
|
background: -webkit-linear-gradient(top, rgb(32, 32, 32), rgb(0, 0, 0));
|
||||||
|
|
Loading…
Reference in a new issue