File tree 2 files changed +18
-13
lines changed
frontend/public/components/utils
2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 1
- // vars
2
1
$color-log-window-body-bg : $color-pf-black ;
3
2
$color-log-window-header-bg : $color-pf-black-900 ;
4
3
$color-log-window-text : $color-pf-black-150 ;
@@ -31,9 +30,15 @@ $color-log-window-divider: $color-log-window-header-bg;
31
30
width : 0 ;
32
31
}
33
32
34
- .log-window__footer {
33
+ .log-window__resume-btn {
35
34
background-color : $color-log-window-header-bg ;
36
- cursor : pointer ;
35
+ color : $color-log-window-text ;
37
36
padding : 4px 10px ;
38
- text-align : center ;
37
+ }
38
+
39
+ .log-window__resume-btn :hover ,
40
+ .log-window__resume-btn :focus ,
41
+ .log-window__resume-btn :active ,
42
+ {
43
+ color : $color-log-window-text ;
39
44
}
Original file line number Diff line number Diff line change @@ -95,12 +95,11 @@ export class LogWindow extends React.PureComponent {
95
95
96
96
// TODO maybe move these variables into state so they are only updated on changes
97
97
const totalLineCount = pluralize ( lines . length , 'line' ) ;
98
- const linesBehindCount = pluralize ( linesBehind , 'line' ) ;
98
+ const linesBehindCount = pluralize ( linesBehind , 'new line' ) ;
99
99
const headerText = bufferFull ? `last ${ totalLineCount } ` : totalLineCount ;
100
- let footerText = ' Resume stream' ;
101
- if ( linesBehind > 0 ) {
102
- footerText += bufferFull ? ` and show last ${ totalLineCount } ` : ` and show ${ linesBehindCount } ` ;
103
- }
100
+ const resumeText = ( linesBehind > 0 )
101
+ ? ` Resume stream and show ${ linesBehindCount } `
102
+ : ' Resume stream' ;
104
103
105
104
return < div className = "log-window" >
106
105
< div className = "log-window__header" >
@@ -115,10 +114,11 @@ export class LogWindow extends React.PureComponent {
115
114
</ div >
116
115
</ div >
117
116
</ div >
118
- { status === 'paused' && < div onClick = { this . _unpause } className = "log-window__footer" >
119
- < span className = "fa fa-play-circle-o" aria-hidden = "true" > </ span >
120
- { footerText }
121
- </ div > }
117
+ { status === 'paused' &&
118
+ < button onClick = { this . _unpause } className = "btn btn-block log-window__resume-btn" >
119
+ < span className = "fa fa-play-circle-o" aria-hidden = "true" > </ span >
120
+ { resumeText }
121
+ </ button > }
122
122
</ div > ;
123
123
}
124
124
}
You can’t perform that action at this time.
0 commit comments