File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed
addons/cb.files.editor/views Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ define([
87
87
'type' : "label"
88
88
} ) ;
89
89
this . tab . statusbar . add ( this . editorStatusCommand ) ;
90
+ this . tab . statusbar . add ( this . collaboratorsMenu ) ;
91
+ this . tab . statusbar . add ( syntaxMenu ) ;
90
92
91
93
// Tab menu
92
94
this . tab . menu . menuSection ( [
Original file line number Diff line number Diff line change 13
13
list-style : none ;
14
14
font-size : 13px ;
15
15
16
- .menu-item {
16
+ & > .menu-item {
17
17
color : inherit ;
18
18
margin : 0px 4px ;
19
19
cursor : default ;
23
23
float : right ;
24
24
display : inline-block ;
25
25
26
+ .menu-label {
27
+ margin-left : 4px ;
28
+ }
29
+
30
+ /* Simple label */
26
31
& .menu-item-label {
27
32
float : left ;
28
33
padding : 3px 3px ;
29
34
}
30
35
36
+ /* Menu */
37
+ & .menu-item-menu {
38
+ .ui-menu {
39
+ bottom : 100% ;
40
+ top : auto ;
41
+ left : auto ;
42
+ right : 0px ;
43
+ max-height : 500px ;
44
+ overflow : auto ;
45
+ }
46
+
47
+ & :not (.disabled ):hover {
48
+ .ui-menu {
49
+ display : block ;
50
+ }
51
+ }
52
+ }
53
+
54
+ /* Action/Menu */
31
55
& > a {
32
56
border-radius : 0px ;
33
57
background : transparent ;
39
63
border-top : 0px ;
40
64
border-bottom : 0px ;
41
65
display : inline-block ;
66
+
67
+ & :hover , & :focus {
68
+ text-decoration : none ;
69
+ }
42
70
}
43
71
44
72
& :hover {
Original file line number Diff line number Diff line change @@ -61,10 +61,10 @@ define([
61
61
} ) ;
62
62
this . on ( "tab:close" , function ( ) {
63
63
this . menu . destroy ( ) ;
64
+ this . statusbar . stopListening ( ) ;
64
65
this . statusbar . each ( function ( command ) {
65
66
command . destroy ( ) ;
66
67
} ) ;
67
- this . statusbar . stopListening ( ) ;
68
68
} , this ) ;
69
69
70
70
// Keyboard shortcuts
You can’t perform that action at this time.
0 commit comments