mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-03 01:55:33 +00:00
Recent folder list will scroll when needed
Able to add more than one recent folder without refreshing the page
This commit is contained in:
parent
19906e0350
commit
1ef168370e
3 changed files with 9 additions and 5 deletions
|
@ -39,9 +39,6 @@ define(
|
|||
SeriesCollection.fetch();
|
||||
QualityProfileCollection.fetch();
|
||||
RootFolderCollection.fetch();
|
||||
|
||||
this.rootFolderLayout = new RootFolderLayout();
|
||||
this.rootFolderLayout.on('folderSelected', this._folderSelected, this);
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
|
@ -55,6 +52,8 @@ define(
|
|||
},
|
||||
|
||||
_importSeries: function () {
|
||||
this.rootFolderLayout = new RootFolderLayout();
|
||||
this.rootFolderLayout.on('folderSelected', this._folderSelected, this);
|
||||
App.modalRegion.show(this.rootFolderLayout);
|
||||
},
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
{{#if items}}
|
||||
<h4>Recent Folders</h4>
|
||||
{{/if}}
|
||||
<div id="current-dirs"/>
|
||||
<div id="current-dirs" class="root-folders-list"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn" data-dismiss="modal">close</button>
|
||||
|
|
|
@ -118,5 +118,10 @@ li.add-new:hover {
|
|||
}
|
||||
|
||||
.root-folders-modal {
|
||||
overflow: visible;
|
||||
overflow: hidden;
|
||||
|
||||
.root-folders-list {
|
||||
overflow: auto;
|
||||
max-height: 300px;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue