@@ -47,111 +47,122 @@ export class MainPanelView extends view.View<any> {
47
47
48
48
this . div ( {
49
49
class : 'atomts atomts-main-panel-view native-key-bindings' ,
50
- style : 'padding: 6px' ,
51
50
tabindex : '-1'
52
51
} , ( ) => {
53
- this . div ( {
54
- class : 'layout horizontal' ,
55
- style : '-webkit-user-select: none; align-items: center' ,
56
- dblclick : 'toggle'
52
+ this . div ( {
53
+ class : 'layout horizontal' ,
54
+ style : '-webkit-user-select: none; flex-wrap: wrap' ,
55
+ dblclick : 'toggle'
56
+ } , ( ) => {
57
+ this . span ( {
58
+ class : 'layout horizontal atomts-panel-header' ,
59
+ style : 'align-items: center'
60
+ } , ( ) => {
61
+ this . span ( {
62
+ style : 'cursor: pointer; color: rgb(0, 148, 255); -webkit-user-select: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 16px' ,
63
+ click : 'toggle'
64
+ } , ( ) => {
65
+ this . span ( { class : 'icon-microscope' } ) ;
66
+ this . span ( { style : 'font-weight: bold' } , 'TypeScript' ) ;
67
+ } ) ;
68
+
69
+ this . div ( {
70
+ class : 'btn-group' ,
71
+ style : 'margin-left: 6px; flex: 1 0 auto'
72
+ } , ( ) => {
73
+ btn ( 'error' , panelHeaders . error , 'selected' )
74
+ btn ( 'build' , panelHeaders . build )
75
+ btn ( 'references' , panelHeaders . references )
76
+ } ) ;
77
+ } ) ;
78
+
79
+ this . span ( {
80
+ class : 'layout horizontal atomts-panel-header' ,
81
+ style : 'align-items: center; flex: 1 1 auto'
57
82
} , ( ) => {
83
+ this . div ( {
84
+ style : 'cursor: pointer;' ,
85
+ click : 'clickedCurrentTsconfigFilePath'
86
+ } , ( ) => {
58
87
this . span ( {
59
- style : 'cursor: pointer; color: rgb(0, 148, 255); -webkit-user-select:none' ,
60
- click : 'toggle'
61
- } , ( ) => {
62
- this . span ( { class : "icon-microscope" } ) ;
63
- this . span ( { style : 'font-weight:bold' } , " TypeScript " ) ;
64
- } ) ;
65
-
66
- this . div ( {
67
- class : 'btn-group' ,
68
- style : 'margin-left: 8px'
69
- } ,
70
- ( ) => {
71
- btn ( 'error' , panelHeaders . error , 'selected' )
72
- btn ( 'build' , panelHeaders . build )
73
- btn ( 'references' , panelHeaders . references )
74
- } ) ;
75
-
76
- this . div ( {
77
- style : 'cursor: pointer;' ,
78
- click : 'clickedCurrentTsconfigFilePath'
79
- } , ( ) => {
80
- this . span ( {
81
- style : 'margin-left: 10px;' ,
82
- outlet : 'tsconfigInUse'
83
- } ) ;
88
+ outlet : 'tsconfigInUse'
84
89
} ) ;
90
+ } ) ;
85
91
86
- this . div ( {
87
- style : 'overflow-x: visible; white-space: nowrap;'
88
- } , ( ) => {
89
- this . span ( {
90
- style : 'margin-left:10px; transition: color 1s' , // Added transition to make it easy to see *yes I just did this compile*.
91
- outlet : 'fileStatus'
92
- } ) ;
92
+ this . div ( {
93
+ style : 'overflow-x: visible; white-space: nowrap;'
94
+ } , ( ) => {
95
+ this . span ( {
96
+ style : 'margin-left: 10px; transition: color 1s' , // Added transition to make it easy to see *yes I just did this compile*.
97
+ outlet : 'fileStatus'
93
98
} ) ;
99
+ } ) ;
100
+
101
+ this . div ( {
102
+ class : 'heading-summary flex' ,
103
+ style : 'margin-left: 5px; overflow: hidden; white-space:nowrap; text-overflow: ellipsis' ,
104
+ outlet : 'summary'
105
+ } ) ;
106
+
107
+ this . progress ( {
108
+ class : 'inline-block build-progress' ,
109
+ style : 'display: none; color: red' ,
110
+ outlet : 'buildProgress'
111
+ } ) ;
94
112
95
- this . div ( {
96
- class : 'heading-summary flex' ,
97
- style : 'margin-left: 5px; overflow: hidden; white-space:nowrap; text-overflow: ellipsis' ,
98
- outlet : 'summary'
113
+ this . span ( {
114
+ class : 'section-pending' ,
115
+ outlet : 'sectionPending' ,
116
+ click : 'showPending'
117
+ } , ( ) => {
118
+ this . span ( {
119
+ outlet : 'txtPendingCount' ,
120
+ style : 'cursor: pointer; margin-left: 5px' ,
99
121
} ) ;
100
122
101
- this . progress ( {
102
- class : 'inline-block build-progress' ,
103
- style : 'display: none; color: red' ,
104
- outlet : 'buildProgress'
123
+ this . span ( {
124
+ class : 'loading loading-spinner-tiny inline-block' ,
125
+ style : 'cursor: pointer; margin-left: 5px'
105
126
} ) ;
127
+ } ) ;
106
128
129
+ this . div ( {
130
+ class : 'heading-buttons' ,
131
+ style : 'margin-left: 5px'
132
+ } , ( ) => {
107
133
this . span ( {
108
- class : 'section-pending' ,
109
- outlet : 'sectionPending' ,
110
- click : 'showPending'
111
- } , ( ) => {
112
- this . span ( {
113
- outlet : 'txtPendingCount' ,
114
- style : 'cursor: pointer; margin-right: 7px;' ,
115
- } ) ;
116
- this . span ( {
117
- class : 'loading loading-spinner-tiny inline-block' ,
118
- style : 'cursor: pointer; margin-right: 7px;'
119
- } ) ;
134
+ class : 'heading-fold icon-unfold' ,
135
+ style : 'cursor: pointer; margin-right: 10px' ,
136
+ outlet : 'btnFold' ,
137
+ click : 'toggle'
120
138
} ) ;
121
139
122
- this . div ( {
123
- class : 'heading-buttons'
124
- } , ( ) => {
125
- this . span ( {
126
- class : 'heading-fold icon-unfold' ,
127
- style : 'cursor: pointer; margin-right:10px' ,
128
- outlet : 'btnFold' ,
129
- click : 'toggle'
130
- } ) ;
131
- this . span ( {
132
- class : 'heading-fold icon-sync' ,
133
- style : 'cursor: pointer' ,
134
- outlet : 'btnSoftReset' ,
135
- click : 'softReset'
136
- } ) ;
137
- } ) ;
140
+ this . span ( {
141
+ class : 'heading-fold icon-sync' ,
142
+ style : 'cursor: pointer' ,
143
+ outlet : 'btnSoftReset' ,
144
+ click : 'softReset'
145
+ } ) ;
138
146
} ) ;
147
+ } ) ;
148
+
139
149
this . div ( {
140
- class : 'panel-body atomts-panel-body padded ' ,
150
+ class : 'panel-body atomts-panel-body' ,
141
151
outlet : 'errorBody' ,
142
- style : 'overflow-y: auto; display: none'
152
+ style : 'overflow-y: auto; flex: 1 0 100%; display: none'
143
153
} ) ;
144
154
this . div ( {
145
- class : 'panel-body atomts-panel-body padded ' ,
155
+ class : 'panel-body atomts-panel-body' ,
146
156
outlet : 'buildBody' ,
147
- style : 'overflow-y: auto; display: none'
157
+ style : 'overflow-y: auto; flex: 1 0 100%; display: none'
148
158
} ) ;
149
159
this . div ( {
150
- class : 'panel-body atomts-panel-body padded ' ,
160
+ class : 'panel-body atomts-panel-body' ,
151
161
outlet : 'referencesBody' ,
152
- style : 'overflow-y: auto; display: none'
162
+ style : 'overflow-y: auto; flex: 1 0 100%; display: none'
153
163
} ) ;
154
164
} ) ;
165
+ } ) ;
155
166
}
156
167
157
168
0 commit comments