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();
|
||||
|
||||
function constructItem(data) {
|
||||
var isEmpty = Ox.isEmpty(data),
|
||||
data = !isEmpty
|
||||
? self.options.item(data, self.options.sort, self.options.size)
|
||||
: {
|
||||
width: Math.round(self.options.size * (
|
||||
self.options.defaultRatio >= 1 ? 1 : self.options.defaultRatio
|
||||
)),
|
||||
height: Math.round(self.options.size / (
|
||||
self.options.defaultRatio <= 1 ? 1 : self.options.defaultRatio
|
||||
))
|
||||
};
|
||||
var isEmpty = Ox.isEmpty(data);
|
||||
data = !isEmpty
|
||||
? self.options.item(data, self.options.sort, self.options.size)
|
||||
: {
|
||||
width: Math.round(self.options.size * (
|
||||
self.options.defaultRatio >= 1 ? 1 : self.options.defaultRatio
|
||||
)),
|
||||
height: Math.round(self.options.size / (
|
||||
self.options.defaultRatio <= 1 ? 1 : self.options.defaultRatio
|
||||
))
|
||||
};
|
||||
return self.options.itemConstructor(Ox.extend(data, {
|
||||
borderRadius: self.options.borderRadius,
|
||||
iconHeight: self.iconHeight,
|
||||
|
|
|
@ -233,8 +233,8 @@ Lists
|
|||
================================================================================
|
||||
*/
|
||||
|
||||
.OxThemeModern .OxIconList .OxItem > img.OxLoading,
|
||||
.OxThemeModern .OxInfoList .OxIcon > img.OxLoading {
|
||||
.OxThemeModern .OxIconList .OxItem > .OxIcon > img.OxLoading,
|
||||
.OxThemeModern .OxInfoList .OxItem > .OxIcon > img.OxLoading {
|
||||
border-color: rgb(48, 48, 48);
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue