1
0
Fork 0
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:
sauls8t 2018-07-31 14:30:04 -04:00
parent aaca1c73b1
commit b74dfe6385
3 changed files with 5 additions and 2 deletions

View file

@ -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);

View file

@ -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

View file

@ -7,6 +7,7 @@
}
.sidebar-scroll {
padding: 1rem;
overflow-x: hidden;
overflow-y: auto;
}