Merge pull request #19733 from owncloud/remove-controls-whennotneeded

Remove controls for file lists that don't need it
This commit is contained in:
Thomas Müller 2015-10-14 12:37:55 +02:00
commit 01cc38018a
4 changed files with 9 additions and 9 deletions

View File

@ -35,13 +35,15 @@
}
/* FILE TABLE */
#filestable {
position: relative;
top: 44px;
width: 100%;
}
#filestable.has-controls {
top: 44px;
}
/* make sure there's enough room for the file actions */
#body-user #filestable {
min-width: 688px; /* 768 (mobile break) - 80 (nav width) */

View File

@ -226,7 +226,11 @@
}
this.breadcrumb = new OCA.Files.BreadCrumb(breadcrumbOptions);
this.$el.find('#controls').prepend(this.breadcrumb.$el);
var $controls = this.$el.find('#controls');
if ($controls.length > 0) {
$controls.prepend(this.breadcrumb.$el);
this.$table.addClass('has-controls');
}
this._renderNewButton();

View File

@ -1,6 +1,3 @@
<div id="controls">
<div id="file_action_panel"></div>
</div>
<div id='notification'></div>
<div id="emptycontent" class="hidden">

View File

@ -1,7 +1,4 @@
<?php /** @var $l OC_L10N */ ?>
<div id="controls">
<div id="file_action_panel"></div>
</div>
<div id='notification'></div>
<div id="emptycontent" class="hidden"></div>