@@ -47,111 +47,122 @@ export class MainPanelView extends view.View<any> {
4747
4848 this . div ( {
4949 class : 'atomts atomts-main-panel-view native-key-bindings' ,
50- style : 'padding: 6px' ,
5150 tabindex : '-1'
5251 } , ( ) => {
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'
5782 } , ( ) => {
83+ this . div ( {
84+ style : 'cursor: pointer;' ,
85+ click : 'clickedCurrentTsconfigFilePath'
86+ } , ( ) => {
5887 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'
8489 } ) ;
90+ } ) ;
8591
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'
9398 } ) ;
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+ } ) ;
94112
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' ,
99121 } ) ;
100122
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'
105126 } ) ;
127+ } ) ;
106128
129+ this . div ( {
130+ class : 'heading-buttons' ,
131+ style : 'margin-left: 5px'
132+ } , ( ) => {
107133 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'
120138 } ) ;
121139
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+ } ) ;
138146 } ) ;
147+ } ) ;
148+
139149 this . div ( {
140- class : 'panel-body atomts-panel-body padded ' ,
150+ class : 'panel-body atomts-panel-body' ,
141151 outlet : 'errorBody' ,
142- style : 'overflow-y: auto; display: none'
152+ style : 'overflow-y: auto; flex: 1 0 100%; display: none'
143153 } ) ;
144154 this . div ( {
145- class : 'panel-body atomts-panel-body padded ' ,
155+ class : 'panel-body atomts-panel-body' ,
146156 outlet : 'buildBody' ,
147- style : 'overflow-y: auto; display: none'
157+ style : 'overflow-y: auto; flex: 1 0 100%; display: none'
148158 } ) ;
149159 this . div ( {
150- class : 'panel-body atomts-panel-body padded ' ,
160+ class : 'panel-body atomts-panel-body' ,
151161 outlet : 'referencesBody' ,
152- style : 'overflow-y: auto; display: none'
162+ style : 'overflow-y: auto; flex: 1 0 100%; display: none'
153163 } ) ;
154164 } ) ;
165+ } ) ;
155166 }
156167
157168
0 commit comments