TagSpaces is an offline, open source, document manager with tagging support
ui optimizations
uggrockfbd3aa5228b3
diff --git a/data/assets/general.css b/data/assets/general.cssindex d8938a0a8..808864762 100644--- a/data/assets/general.css+++ b/data/assets/general.css@@ -608,6 +608,7 @@ input a.resetFilter {.fileTitleButton {margin: 1px;padding: 1px;+ margin-left: 5px;}.optionsTitle {diff --git a/data/ext/perspectiveList/perspectiveUI.js b/data/ext/perspectiveList/perspectiveUI.jsindex 2642fe603..deeebfca5 100644--- a/data/ext/perspectiveList/perspectiveUI.js+++ b/data/ext/perspectiveList/perspectiveUI.js@@ -10,7 +10,6 @@ define(function(require, exports, module) {var TSCORE = require("tscore");var TMB_SIZES = ["100px", "200px", "300px", "400px", "500px"];-var supportedFileTypeThumnailing = ['jpg', 'jpeg', 'png', 'gif'];var extensionDirectory;@@ -19,7 +18,6 @@ define(function(require, exports, module) {this.extensionID = extID;this.viewContainer = $("#" + this.extensionID + "Container").empty();this.viewToolbar = $("#" + this.extensionID + "Toolbar").empty();- this.viewFooter = $("#" + this.extensionID + "Footer").empty();this.thumbEnabled = false;this.showFileDetails = false;@@ -437,10 +435,10 @@ define(function(require, exports, module) {TSCORE.hideLoadingAnimation();};- var buttonCompTmpl = Handlebars.compile('<button filepath="{{filepath}}" class="btn btn-link fileSelection"><i class="fa {{selected}} fa-fw fa-lg"></i></button>' ++ var buttonCompTmpl = Handlebars.compile('<button filepath="{{filepath}}" class="btn btn-link fileSelection"><i class="fa {{selected}} fa-fw fa-lg"></i></button><br>' +'<button filepath="{{filepath}}" title="{{filepath}}" class="btn btn-link fileTitleButton"><span class="fileExt"><span>{{fileext}}</span> <span class="caret white-caret"></span></span></button>');- var buttonCompTmbTmpl = Handlebars.compile('<button filepath="{{filepath}}" class="btn btn-link fileSelection"><i class="fa {{selected}} fa-fw fa-lg"></i></button>' ++ var buttonCompTmbTmpl = Handlebars.compile('<button filepath="{{filepath}}" class="btn btn-link fileSelection"><i class="fa {{selected}} fa-fw fa-lg"></i></button><br>' +'<button filepath="{{filepath}}" title="{{filepath}}" class="btn btn-link fileTitleButton"><span class="fileExt"><span>{{fileext}}</span> <span class="caret white-caret"></span></span></button>' +'<br><img class="thumbImg" filepath="{{tmbpath}}" >');@@ -465,11 +463,12 @@ define(function(require, exports, module) {selected: isSelected ? "fa-check-square-o" : "fa-square-o"};- if (supportedFileTypeThumnailing.indexOf(fileExt) >= 0) {- return buttonCompTmbTmpl(context);- } else {+ // Disabling thumb suport+ //if (supportedFileTypeThumnailing.indexOf(fileExt) >= 0) {+ // return buttonCompTmbTmpl(context);+ //} else {return buttonCompTmpl(context);- }+ //}};ExtUI.prototype.clearSelectedFiles = function() {diff --git a/data/ext/perspectiveList/toolbar.html b/data/ext/perspectiveList/toolbar.htmlindex e9422f724..16a995dc6 100644--- a/data/ext/perspectiveList/toolbar.html+++ b/data/ext/perspectiveList/toolbar.html@@ -4,11 +4,8 @@</button><ul class="dropdown-menu pull-right"><li class="dropdown-header">- <button class="close">×</button>+ <button class="close">×</button> </li>- <li><a id="{{id}}ToogleSelectAll">- <i class="fa fa-square-o fa-lg fa-fw"></i> <span data-i18n="ns.perspectiveList:toggleSelectAll"></span>- </a></li><li class="divider"></li><li><a id="{{id}}CreateHTMLFileButton"><i class="fa fa-file-image-o fa-lg fa-fw"></i> <span data-i18n="ns.perspectiveList:createHTMLFile"></span>@@ -26,6 +23,9 @@<i class="fa fa-plus-circle fa-lg fa-fw"></i> <span data-i18n="ns.perspectiveList:showAddFileDialog"></span></a></li><li class="divider"></li>+ <li><a id="{{id}}ToogleSelectAll">+ <i class="fa fa-square-o fa-lg fa-fw"></i> <span data-i18n="ns.perspectiveList:toggleSelectAll"></span>+ </a></li><li><a id="{{id}}TagButton"><i class="fa fa-tag fa-lg fa-fw"></i> <span data-i18n="ns.perspectiveList:addRemoveTagsTooltip"></span></a></li>