File tree Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 16
16
i.fa.fa-caret-left
17
17
|
18
18
i.fa.fa-file-text-o
19
- .column.side
19
+ button.btn.btn-link.splitter-button.hidden
20
+ i.fa.fa-file-text-o
21
+ |
22
+ i.fa.fa-caret-right
23
+ .column.side ( data-hook ='collection-side' )
20
24
div( data-hook ='documents-subview' )
Original file line number Diff line number Diff line change @@ -17,26 +17,17 @@ module.exports = AmpersandView.extend({
17
17
default : false
18
18
}
19
19
} ,
20
- derived : {
21
- sidebarWidth : {
22
- deps : [ 'open' ] ,
23
- fn : function ( ) {
24
- return this . open ? 400 : 0 ;
25
- }
26
- }
27
- } ,
28
20
events : {
29
21
'click .splitter' : 'onSplitterClick' ,
30
22
} ,
31
23
bindings : {
32
24
'model._id' : {
33
25
hook : 'name'
34
26
} ,
35
- 'sidebarWidth' : {
36
- type : function ( el , value ) {
37
- $ ( el ) . width ( value ) ;
38
- } ,
39
- selector : '.side'
27
+ 'open' : {
28
+ type : 'booleanClass' ,
29
+ yes : 'is-open' ,
30
+ hook : 'collection-side'
40
31
}
41
32
} ,
42
33
children : {
Original file line number Diff line number Diff line change 111
111
}
112
112
113
113
.side {
114
- width : 350 px ;
114
+ width : 0 ;
115
115
font-family : @font-family-monospace ;
116
116
font-size : 11px ;
117
117
border-left : 2px solid @gray7 ;
118
118
right : -12px ;
119
+
120
+ & .is-open {
121
+ width : 400px ;
122
+ }
119
123
}
120
124
121
125
.splitter {
You can’t perform that action at this time.
0 commit comments