diff --git a/www/common/common-interface.js b/www/common/common-interface.js index f519c34da..badfa4e57 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -509,7 +509,7 @@ define([ var $icon = $defaultIcon.clone(); if (AppConfig.applicationsIcon && AppConfig.applicationsIcon[type]) { - var appClass = ' cp-icon-color-'+type; + var appClass = ' cp-icon cp-icon-color-'+type; $icon = $('', {'class': 'fa ' + AppConfig.applicationsIcon[type] + appClass}); } diff --git a/www/drive/app-drive.less b/www/drive/app-drive.less index e7e5e2cda..7b3adf77e 100644 --- a/www/drive/app-drive.less +++ b/www/drive/app-drive.less @@ -592,7 +592,7 @@ span { margin-right: 5px; } } - &.cp-app-drive-content-icon, &.cp-app-drive-element-state { + &.cp-app-drive-content-icon, &.cp-app-drive-element-state, &.cp-icon { width: 30px; } &.cp-app-drive-element-type, &.cp-app-drive-element-atime, &.cp-app-drive-element-ctime { diff --git a/www/drive/inner.js b/www/drive/inner.js index 4b673a997..7f6bf1529 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -1835,7 +1835,7 @@ define([ var roClass = typeof(ro) === 'undefined' ? ' cp-app-drive-element-noreadonly' : ro ? ' cp-app-drive-element-readonly' : ''; var $element = $('
  • ', { - 'class': 'cp-app-drive-element cp-app-drive-element-row' + roClass, + 'class': 'cp-app-drive-element cp-app-drive-element-file cp-app-drive-element-row' + roClass, draggable: draggable }); if (Array.isArray(APP.selectedFiles)) { @@ -2011,7 +2011,7 @@ define([ var roClass = typeof(ro) === 'undefined' ? ' cp-app-drive-element-noreadonly' : ro ? ' cp-app-drive-element-readonly' : ''; var $element = $('
  • ', { - 'class': 'cp-app-drive-element cp-app-drive-element-row' + roClass, + 'class': 'cp-app-drive-element cp-app-drive-element-file cp-app-drive-element-row' + roClass, }); addFileData(id, $element); $element.prepend($icon).dblclick(function () {