Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-10-04 15:17:24 +02:00 committed by Jan-Christoph Borchardt
parent c4cce14134
commit 872b866a69
No known key found for this signature in database
GPG Key ID: CBD846FC845CBE17
3 changed files with 3 additions and 2 deletions

View File

@ -903,7 +903,7 @@ table.dragshadow td.size {
} }
/* Grid view toggle */ /* Grid view toggle */
.view-toggle { #view-toggle {
background-color: transparent; background-color: transparent;
border: none; border: none;
margin: 0; margin: 0;

View File

@ -330,6 +330,7 @@
// Toggle for grid view // Toggle for grid view
this.$showGridView = $('input#showgridview'); this.$showGridView = $('input#showgridview');
this.$showGridView.on('change', _.bind(this._onGridviewChange, this)); this.$showGridView.on('change', _.bind(this._onGridviewChange, this));
$('#view-toggle').tooltip({placement: 'bottom'});
this._onResize = _.debounce(_.bind(this._onResize, this), 250); this._onResize = _.debounce(_.bind(this._onResize, this), 250);
$('#app-content').on('appresized', this._onResize); $('#app-content').on('appresized', this._onResize);

View File

@ -26,7 +26,7 @@
value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)"> value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
<input type="checkbox" class="hidden" id="showgridview" <input type="checkbox" class="hidden" id="showgridview"
<?php if($_['showgridview']) { ?>checked="checked" <?php } ?>/> <?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>
<div id="emptycontent" class="hidden"> <div id="emptycontent" class="hidden">