File tree 3 files changed +20
-0
lines changed
arduino-ide-extension/src/browser
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 59
59
filter : contrast (90% );
60
60
}
61
61
62
+ .filterable-list-container .no-match {
63
+ font-weight : bold;
64
+ color : var (--theia-panelTitle-inactiveForeground );
65
+ align-items : center;
66
+ margin-top : 10px ;
67
+ }
68
+
62
69
.component-list-item {
63
70
padding : 10px 10px 10px 15px ;
64
71
font-size : var (--theia-ui-font-size1 );
Original file line number Diff line number Diff line change
1
+ import { nls } from '@theia/core/lib/common/nls' ;
1
2
import * as React from '@theia/core/shared/react' ;
2
3
import AutoSizer from 'react-virtualized/dist/commonjs/AutoSizer' ;
3
4
import {
@@ -67,6 +68,7 @@ export class ComponentList<T extends ArduinoComponent> extends React.Component<
67
68
rowHeight = { this . cache . rowHeight }
68
69
deferredMeasurementCache = { this . cache }
69
70
ref = { this . setListRef }
71
+ noRowsRenderer = { this . renderNoMatch }
70
72
/>
71
73
) ;
72
74
} }
@@ -136,6 +138,14 @@ export class ComponentList<T extends ArduinoComponent> extends React.Component<
136
138
</ CellMeasurer >
137
139
) ;
138
140
} ;
141
+
142
+ private renderNoMatch = ( ) : JSX . Element => {
143
+ return (
144
+ < div className = "no-match" >
145
+ { nls . localize ( 'arduino/listWidget/noMatch' , 'No match' ) }
146
+ </ div >
147
+ ) ;
148
+ } ;
139
149
}
140
150
141
151
export namespace ComponentList {
Original file line number Diff line number Diff line change 272
272
"libraryType" : {
273
273
"installed" : " Installed"
274
274
},
275
+ "listWidget" : {
276
+ "noMatch" : " No match"
277
+ },
275
278
"menu" : {
276
279
"advanced" : " Advanced" ,
277
280
"sketch" : " Sketch" ,
You can’t perform that action at this time.
0 commit comments