From dcdc0972dde79f2a482e490cc82742121990cd95 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 6 Nov 2018 11:40:18 +0100 Subject: [PATCH] Update template icon in the drive tree --- www/drive/app-drive.less | 5 ++--- www/drive/inner.js | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/www/drive/app-drive.less b/www/drive/app-drive.less index d67c7d171..66f7cb82c 100644 --- a/www/drive/app-drive.less +++ b/www/drive/app-drive.less @@ -243,9 +243,8 @@ margin: 0; margin-top: 15px; .cp-app-drive-tree-root { - .fa, .cptools { - min-width: 30px; - cursor: pointer; + .fa-trash-o { + padding-left: 2px; } } li { diff --git a/www/drive/inner.js b/www/drive/inner.js index 9fe6a15a1..bc29394a3 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -97,7 +97,7 @@ define([ var $sharedFolderOpenedIcon = $('', {"class": faSharedFolderOpen + " cptools cp-app-drive-icon-folder"}); //var $upIcon = $('', {"class": "fa fa-arrow-circle-up"}); var $unsortedIcon = $('', {"class": "fa fa-files-o"}); - var $templateIcon = $('', {"class": "fa fa-cubes"}); + var $templateIcon = $('', {"class": "cptools cptools-template"}); var $recentIcon = $('', {"class": "fa fa-clock-o"}); var $trashIcon = $('', {"class": "fa " + faTrash}); var $trashEmptyIcon = $('', {"class": "fa fa-trash-o"}); @@ -2893,7 +2893,7 @@ define([ var $icon = manager.isFolderEmpty(files[TRASH]) ? $trashEmptyIcon.clone() : $trashIcon.clone(); var isOpened = manager.comparePath(path, currentPath); var $trashElement = createTreeElement(TRASH_NAME, $icon, [TRASH], false, true, false, isOpened); - $trashElement.addClass('root'); + $trashElement.addClass('cp-app-drive-tree-root'); $trashElement.find('>.cp-app-drive-element-row') .contextmenu(openContextMenu('trashtree')); var $trashList = $('
    ', { 'class': 'cp-app-drive-tree-category' })