File tree Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 4
4
< title > MongoDB Compass</ title >
5
5
< meta name ="viewport " content ="initial-scale=1 ">
6
6
< link rel ="stylesheet/less " type ="text/css " href ="index.less " charset ="UTF-8 ">
7
+ < style >
8
+ div # static-sidebar {
9
+ position : fixed;
10
+ top : 0 ;
11
+ left : 0 ;
12
+ width : 250px ;
13
+ height : 100% ;
14
+ background-color : # 4c5259 ; /* @slate1 */
15
+ }
16
+ </ style >
7
17
</ head >
8
18
< body >
9
19
< div id ="application ">
10
20
< div data-hook ="statusbar "> </ div >
11
- < div data-hook ="layout-container "> </ div >
21
+ < div data-hook ="layout-container ">
22
+ < div id ="static-sidebar " class ="sidebar "> </ div >
23
+ </ div >
12
24
</ div >
13
25
< script src ="index.js " charset ="UTF-8 " async > </ script >
14
26
< script >
Original file line number Diff line number Diff line change @@ -371,7 +371,8 @@ app.extend({
371
371
372
372
handleIntercomLinks ( ) ;
373
373
app . statusbar . show ( {
374
- message : 'Retrieving connection details...'
374
+ message : 'Retrieving connection details...' ,
375
+ staticSidebar : true
375
376
} ) ;
376
377
377
378
state . connection = new Connection ( {
Original file line number Diff line number Diff line change 1
1
#statusbar
2
2
.progress ( data-hook ='outer-bar' )
3
3
.progress-bar.progress-bar-striped.active ( data-hook ='inner-bar' )
4
+ .sidebar ( data-hook ='static-sidebar' )
4
5
ul.message-background.with-sidebar.centered ( data-hook ='message-container' )
5
6
li
6
7
p( data-hook ='message' )
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ var StatusbarView = View.extend({
20
20
message : {
21
21
type : 'string'
22
22
} ,
23
+ staticSidebar : {
24
+ type : 'boolean' ,
25
+ default : false
26
+ } ,
23
27
animation : {
24
28
type : 'boolean' ,
25
29
default : false
@@ -52,6 +56,10 @@ var StatusbarView = View.extend({
52
56
} ,
53
57
template : indexTemplate ,
54
58
bindings : {
59
+ staticSidebar : {
60
+ type : 'toggle' ,
61
+ hook : 'static-sidebar'
62
+ } ,
55
63
animation : {
56
64
type : 'toggle' ,
57
65
hook : 'animation' ,
@@ -151,6 +159,7 @@ var StatusbarView = View.extend({
151
159
hide : function ( completed ) {
152
160
this . message = '' ;
153
161
this . animation = false ;
162
+ this . staticSidebar = false ;
154
163
if ( this . subview ) {
155
164
this . subview . remove ( ) ;
156
165
}
You can’t perform that action at this time.
0 commit comments