6
6
*/
7
7
import { clock } from '@xh/hoist/cmp/clock' ;
8
8
import { grid } from '@xh/hoist/cmp/grid' ;
9
- import { code , filler , fragment , hspacer , label , placeholder } from '@xh/hoist/cmp/layout' ;
9
+ import { filler , fragment , hspacer , label , placeholder } from '@xh/hoist/cmp/layout' ;
10
+ import { loadingIndicator } from '@xh/hoist/cmp/loadingindicator' ;
10
11
import { hoistCmp , uses , XH } from '@xh/hoist/core' ;
11
12
import { button , modalToggleButton } from '@xh/hoist/desktop/cmp/button' ;
12
13
import { gridFindField } from '@xh/hoist/desktop/cmp/grid' ;
13
14
import { numberInput , switchInput , textInput } from '@xh/hoist/desktop/cmp/input' ;
14
- import { loadingIndicator } from '@xh/hoist/cmp/loadingindicator' ;
15
15
import { panel } from '@xh/hoist/desktop/cmp/panel' ;
16
16
import { toolbar , toolbarSep } from '@xh/hoist/desktop/cmp/toolbar' ;
17
17
import { Icon } from '@xh/hoist/icon' ;
@@ -48,7 +48,7 @@ const tbar = hoistCmp.factory<LogDisplayModel>(({model}) => {
48
48
numberInput ( {
49
49
bind : 'startLine' ,
50
50
min : 1 ,
51
- width : 80 ,
51
+ width : 70 ,
52
52
disabled : model . tail ,
53
53
displayWithCommas : true
54
54
} ) ,
@@ -57,13 +57,13 @@ const tbar = hoistCmp.factory<LogDisplayModel>(({model}) => {
57
57
numberInput ( {
58
58
bind : 'maxLines' ,
59
59
min : 1 ,
60
- width : 80 ,
60
+ width : 70 ,
61
61
displayWithCommas : true
62
62
} ) ,
63
63
'-' ,
64
64
textInput ( {
65
65
bind : 'pattern' ,
66
- placeholder : 'Filter' ,
66
+ placeholder : 'Filter lines... ' ,
67
67
leftIcon : Icon . filter ( ) ,
68
68
flex : 1 ,
69
69
rightElement : fragment (
@@ -85,7 +85,7 @@ const tbar = hoistCmp.factory<LogDisplayModel>(({model}) => {
85
85
} )
86
86
)
87
87
} ) ,
88
- gridFindField ( { flex : 1 } ) ,
88
+ gridFindField ( { flex : 1 , placeholder : 'Find lines...' } ) ,
89
89
'-' ,
90
90
switchInput ( {
91
91
bind : 'tail' ,
@@ -123,16 +123,14 @@ const bbar = hoistCmp.factory<LogDisplayModel>({
123
123
} ) ,
124
124
filler ( ) ,
125
125
Icon . clock ( ) ,
126
- code (
127
- clock ( {
128
- timezone : zone ,
129
- format : 'HH:mm' ,
130
- suffix : fmtTimeZone ( zone , offset )
131
- } )
132
- ) ,
126
+ clock ( {
127
+ timezone : zone ,
128
+ format : 'HH:mm' ,
129
+ suffix : fmtTimeZone ( zone , offset )
130
+ } ) ,
133
131
fragment ( {
134
132
omit : ! logRootPath ,
135
- items : [ toolbarSep ( ) , Icon . folder ( ) , code ( logRootPath ) ]
133
+ items : [ toolbarSep ( ) , Icon . folder ( { className : 'xh-margin-right' } ) , logRootPath ]
136
134
} )
137
135
) ;
138
136
}
0 commit comments