mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +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';
|
import Component from '@ember/component';
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
classNames: ['layout-sidebar', 'non-printable'],
|
|
||||||
tagName: 'nav',
|
tagName: 'nav',
|
||||||
|
classNames: ['layout-sidebar', 'non-printable'],
|
||||||
|
classNameBindings: ['scrollable:sidebar-scroll'],
|
||||||
|
scrollable: false,
|
||||||
|
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
onMoveDocument=(action 'onMoveDocument')}}
|
onMoveDocument=(action 'onMoveDocument')}}
|
||||||
{{/layout/middle-zone-content}}
|
{{/layout/middle-zone-content}}
|
||||||
|
|
||||||
{{#layout/middle-zone-sidebar}}
|
{{#layout/middle-zone-sidebar scrollable=true}}
|
||||||
<div id="sidebar" class="sidebar">
|
<div id="sidebar" class="sidebar">
|
||||||
{{folder/space-view
|
{{folder/space-view
|
||||||
spaces=model.folders
|
spaces=model.folders
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-scroll {
|
.sidebar-scroll {
|
||||||
|
padding: 1rem;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue