diff options
-rw-r--r-- | apps/files/css/files.scss | 2 | ||||
-rw-r--r-- | apps/files/js/filelist.js | 1 | ||||
-rw-r--r-- | apps/files/templates/list.php | 2 |
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"> |