From 4197b7b968429766a98ce4f849e4b97a9c0c4e34 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 17 Oct 2017 17:23:31 +0200 Subject: [PATCH] Fix missing icon in list mode for files with thumbnail --- www/drive/inner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/drive/inner.js b/www/drive/inner.js index fbfcf4870..2c180edc9 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -1165,7 +1165,9 @@ define([ var type = Messages.type[hrefData.type] || hrefData.type; common.displayThumbnail(data.href, $span, function ($thumb) { // Called only if the thumbnail exists - $span.find('.cp-icon').addClass('cp-app-drive-element-list'); + // Remove the .hide() added by displayThumnail() because it hides the icon in + // list mode too + $span.find('.cp-icon').removeAttr('style').addClass('cp-app-drive-element-list'); $thumb.addClass('cp-app-drive-element-grid') .addClass('cp-app-drive-element-thumbnail'); });