@@ -39,97 +39,107 @@ var MainPanelView = (function (_super) {
39
39
tabindex : '-1'
40
40
} , function ( ) {
41
41
_this . div ( {
42
- class : 'layout horizontal atomts-panel-header ' ,
43
- style : '-webkit-user-select: none; align-items: center ' ,
42
+ class : 'layout horizontal' ,
43
+ style : '-webkit-user-select: none; flex-wrap: wrap ' ,
44
44
dblclick : 'toggle'
45
45
} , function ( ) {
46
46
_this . span ( {
47
- style : 'cursor: pointer; color: rgb(0, 148, 255); -webkit-user-select:none' ,
48
- click : 'toggle'
49
- } , function ( ) {
50
- _this . span ( { class : "icon-microscope" } ) ;
51
- _this . span ( { style : 'font-weight:bold' } , " TypeScript " ) ;
52
- } ) ;
53
- _this . div ( {
54
- class : 'btn-group' ,
55
- style : 'margin-left: 8px'
56
- } , function ( ) {
57
- btn ( 'error' , panelHeaders . error , 'selected' ) ;
58
- btn ( 'build' , panelHeaders . build ) ;
59
- btn ( 'references' , panelHeaders . references ) ;
60
- } ) ;
61
- _this . div ( {
62
- style : 'cursor: pointer;' ,
63
- click : 'clickedCurrentTsconfigFilePath'
47
+ class : 'layout horizontal atomts-panel-header' ,
48
+ style : 'align-items: center'
64
49
} , function ( ) {
65
50
_this . span ( {
66
- style : 'margin-left: 10px;' ,
67
- outlet : 'tsconfigInUse'
51
+ style : 'cursor: pointer; color: rgb(0, 148, 255); -webkit-user-select: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 16px' ,
52
+ click : 'toggle'
53
+ } , function ( ) {
54
+ _this . span ( { class : 'icon-microscope' } ) ;
55
+ _this . span ( { style : 'font-weight: bold' } , 'TypeScript' ) ;
68
56
} ) ;
69
- } ) ;
70
- _this . div ( {
71
- style : 'overflow-x: visible; white-space: nowrap; '
72
- } , function ( ) {
73
- _this . span ( {
74
- style : 'margin-left:10px; transition: color 1s' ,
75
- outlet : 'fileStatus'
57
+ _this . div ( {
58
+ class : 'btn-group' ,
59
+ style : 'margin-left: 6px; flex: 1 0 auto '
60
+ } , function ( ) {
61
+ btn ( 'error' , panelHeaders . error , 'selected' ) ;
62
+ btn ( 'build' , panelHeaders . build ) ;
63
+ btn ( 'references' , panelHeaders . references ) ;
76
64
} ) ;
77
65
} ) ;
78
- _this . div ( {
79
- class : 'heading-summary flex' ,
80
- style : 'margin-left: 5px; overflow: hidden; white-space:nowrap; text-overflow: ellipsis' ,
81
- outlet : 'summary'
82
- } ) ;
83
- _this . progress ( {
84
- class : 'inline-block build-progress' ,
85
- style : 'display: none; color: red' ,
86
- outlet : 'buildProgress'
87
- } ) ;
88
66
_this . span ( {
89
- class : 'section-pending' ,
90
- outlet : 'sectionPending' ,
91
- click : 'showPending'
67
+ class : 'layout horizontal atomts-panel-header' ,
68
+ style : 'align-items: center; flex: 1 1 auto'
92
69
} , function ( ) {
93
- _this . span ( {
94
- outlet : 'txtPendingCount' ,
95
- style : 'cursor: pointer; margin-right: 7px;' ,
70
+ _this . div ( {
71
+ style : 'cursor: pointer;' ,
72
+ click : 'clickedCurrentTsconfigFilePath'
73
+ } , function ( ) {
74
+ _this . span ( {
75
+ outlet : 'tsconfigInUse'
76
+ } ) ;
96
77
} ) ;
97
- _this . span ( {
98
- class : 'loading loading-spinner-tiny inline-block' ,
99
- style : 'cursor: pointer; margin-right: 7px;'
78
+ _this . div ( {
79
+ style : 'overflow-x: visible; white-space: nowrap;'
80
+ } , function ( ) {
81
+ _this . span ( {
82
+ style : 'margin-left: 10px; transition: color 1s' ,
83
+ outlet : 'fileStatus'
84
+ } ) ;
100
85
} ) ;
101
- } ) ;
102
- _this . div ( {
103
- class : 'heading-buttons'
104
- } , function ( ) {
105
- _this . span ( {
106
- class : 'heading-fold icon-unfold' ,
107
- style : 'cursor: pointer; margin-right:10px ' ,
108
- outlet : 'btnFold ' ,
109
- click : 'toggle '
86
+ _this . div ( {
87
+ class : 'heading-summary flex' ,
88
+ style : 'margin-left: 5px; overflow: hidden; white-space:nowrap; text-overflow: ellipsis' ,
89
+ outlet : 'summary'
90
+ } ) ;
91
+ _this . progress ( {
92
+ class : 'inline-block build-progress ' ,
93
+ style : 'display: none; color: red ' ,
94
+ outlet : 'buildProgress '
110
95
} ) ;
111
96
_this . span ( {
112
- class : 'heading-fold icon-sync' ,
113
- style : 'cursor: pointer' ,
114
- outlet : 'btnSoftReset' ,
115
- click : 'softReset'
97
+ class : 'section-pending' ,
98
+ outlet : 'sectionPending' ,
99
+ click : 'showPending'
100
+ } , function ( ) {
101
+ _this . span ( {
102
+ outlet : 'txtPendingCount' ,
103
+ style : 'cursor: pointer; margin-left: 5px' ,
104
+ } ) ;
105
+ _this . span ( {
106
+ class : 'loading loading-spinner-tiny inline-block' ,
107
+ style : 'cursor: pointer; margin-left: 5px'
108
+ } ) ;
109
+ } ) ;
110
+ _this . div ( {
111
+ class : 'heading-buttons' ,
112
+ style : 'margin-left: 5px'
113
+ } , function ( ) {
114
+ _this . span ( {
115
+ class : 'heading-fold icon-unfold' ,
116
+ style : 'cursor: pointer; margin-right: 10px' ,
117
+ outlet : 'btnFold' ,
118
+ click : 'toggle'
119
+ } ) ;
120
+ _this . span ( {
121
+ class : 'heading-fold icon-sync' ,
122
+ style : 'cursor: pointer' ,
123
+ outlet : 'btnSoftReset' ,
124
+ click : 'softReset'
125
+ } ) ;
116
126
} ) ;
117
127
} ) ;
118
- } ) ;
119
- _this . div ( {
120
- class : 'panel-body atomts-panel-body ' ,
121
- outlet : 'errorBody' ,
122
- style : 'overflow-y: auto; display: none'
123
- } ) ;
124
- _this . div ( {
125
- class : 'panel-body atomts-panel-body ' ,
126
- outlet : 'buildBody' ,
127
- style : 'overflow-y: auto; display: none'
128
- } ) ;
129
- _this . div ( {
130
- class : 'panel-body atomts-panel-body ' ,
131
- outlet : 'referencesBody' ,
132
- style : 'overflow-y: auto; display: none'
128
+ _this . div ( {
129
+ class : 'panel-body atomts-panel-body' ,
130
+ outlet : 'errorBody ' ,
131
+ style : 'overflow-y: auto; flex: 1 0 100%; display: none'
132
+ } ) ;
133
+ _this . div ( {
134
+ class : 'panel-body atomts-panel-body' ,
135
+ outlet : 'buildBody ' ,
136
+ style : 'overflow-y: auto; flex: 1 0 100%; display: none'
137
+ } ) ;
138
+ _this . div ( {
139
+ class : 'panel-body atomts-panel-body' ,
140
+ outlet : 'referencesBody ' ,
141
+ style : 'overflow-y: auto; flex: 1 0 100%; display: none'
142
+ } ) ;
133
143
} ) ;
134
144
} ) ;
135
145
} ;
0 commit comments