mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Scrolling for long category lists on space view
This commit is contained in:
parent
aaca1c73b1
commit
b74dfe6385
3 changed files with 5 additions and 2 deletions
|
@ -12,8 +12,10 @@
|
|||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend({
|
||||
classNames: ['layout-sidebar', 'non-printable'],
|
||||
tagName: 'nav',
|
||||
classNames: ['layout-sidebar', 'non-printable'],
|
||||
classNameBindings: ['scrollable:sidebar-scroll'],
|
||||
scrollable: false,
|
||||
|
||||
didInsertElement() {
|
||||
this._super(...arguments);
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
onMoveDocument=(action 'onMoveDocument')}}
|
||||
{{/layout/middle-zone-content}}
|
||||
|
||||
{{#layout/middle-zone-sidebar}}
|
||||
{{#layout/middle-zone-sidebar scrollable=true}}
|
||||
<div id="sidebar" class="sidebar">
|
||||
{{folder/space-view
|
||||
spaces=model.folders
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
}
|
||||
|
||||
.sidebar-scroll {
|
||||
padding: 1rem;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue