[Pkg-owncloud-commits] [owncloud] 69/205: remove whitespace on bottom when no search results, fix laylout, fix #16878
David Prévot
taffit at moszumanska.debian.org
Thu Jul 2 17:36:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 9dde4823154334645ca89dde14561a0c29e2775e
Author: Jan-Christoph Borchardt <hey at jancborchardt.net>
Date: Mon Jun 22 15:30:29 2015 +0200
remove whitespace on bottom when no search results, fix laylout, fix #16878
---
apps/files/js/filelist.js | 4 ++--
core/search/css/results.css | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 400b172..ed83c2b 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1708,13 +1708,13 @@
if (this._filter && this.fileSummary.summary.totalDirs + this.fileSummary.summary.totalFiles === 0) {
this.$el.find('#filestable thead th').addClass('hidden');
this.$el.find('#emptycontent').addClass('hidden');
- $('#app-content-files').addClass('filter-empty');
+ $('#searchresults').addClass('filter-empty');
if ( $('#searchresults').length === 0 || $('#searchresults').hasClass('hidden') ) {
this.$el.find('.nofilterresults').removeClass('hidden').
find('p').text(t('files', "No entries in this folder match '{filter}'", {filter:this._filter}, null, {'escape': false}));
}
} else {
- $('#app-content-files').removeClass('filter-empty');
+ $('#searchresults').removeClass('filter-empty');
this.$el.find('#filestable thead th').toggleClass('hidden', this.isEmpty);
if (!this.$el.find('.mask').exists()) {
this.$el.find('#emptycontent').toggleClass('hidden', !this.isEmpty);
diff --git a/core/search/css/results.css b/core/search/css/results.css
index 36a2ccc..fd07561 100644
--- a/core/search/css/results.css
+++ b/core/search/css/results.css
@@ -12,6 +12,10 @@
/* account for margin-bottom in files list */
margin-top: -250px;
}
+#searchresults.filter-empty {
+ /* remove whitespace on bottom when no search results, to fix layout */
+ margin-top: 0 !important;
+}
#searchresults.hidden {
display: none;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list