summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-10-04 15:17:24 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2018-10-18 13:44:07 +0200
commit872b866a694e991671230857b30c36888234ca53 (patch)
tree0579aa676a1aba3f707d6a50f1dabc9e95043165 /apps
parentc4cce1413487f5a0e870dd2139a4c624a97981fd (diff)
downloadnextcloud-server-872b866a694e991671230857b30c36888234ca53.tar.gz
nextcloud-server-872b866a694e991671230857b30c36888234ca53.zip
Tooltip
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/css/files.scss2
-rw-r--r--apps/files/js/filelist.js1
-rw-r--r--apps/files/templates/list.php2
3 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss
index 2f03a4b202b..b0317375214 100644
--- a/apps/files/css/files.scss
+++ b/apps/files/css/files.scss
@@ -903,7 +903,7 @@ table.dragshadow td.size {
}
/* Grid view toggle */
-.view-toggle {
+#view-toggle {
background-color: transparent;
border: none;
margin: 0;
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 357b1b06016..65d26545412 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -330,6 +330,7 @@
// Toggle for grid view
this.$showGridView = $('input#showgridview');
this.$showGridView.on('change', _.bind(this._onGridviewChange, this));
+ $('#view-toggle').tooltip({placement: 'bottom'});
this._onResize = _.debounce(_.bind(this._onResize, this), 250);
$('#app-content').on('appresized', this._onResize);
diff --git a/apps/files/templates/list.php b/apps/files/templates/list.php
index 0c92cf8a1d4..74821d79316 100644
--- a/apps/files/templates/list.php
+++ b/apps/files/templates/list.php
@@ -26,7 +26,7 @@
value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
<input type="checkbox" class="hidden" id="showgridview"
<?php if($_['showgridview']) { ?>checked="checked" <?php } ?>/>
- <label id="view-toggle" for="showgridview" class="button view-toggle <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?> has-tooltip" title="<?php p($l->t('Toggle grid view'))?>"></label>
+ <label id="view-toggle" for="showgridview" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>" title="<?php p($l->t('Toggle grid view'))?>"></label>
</div>
<div id="emptycontent" class="hidden">