File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed
src/components/pipelines-tasks/tasks-details-pages/events Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ const timeout = { enter: 150 };
1818
1919const measurementCache = new CellMeasurerCache ( {
2020 fixedWidth : true ,
21+ defaultHeight : 120 ,
22+ minHeight : 120 ,
2123} ) ;
2224
2325class SysEvent extends React . Component < SysEventProps > {
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ import classNames from 'classnames';
33import * as PropTypes from 'prop-types' ;
44import { Button } from '@patternfly/react-core' ;
55import { withTranslation } from 'react-i18next' ;
6+ import { PlayIcon , PauseIcon } from '@patternfly/react-icons' ;
7+
8+ import './toggle-play.scss' ;
69
710class TogglePlayWithTranslation extends React . Component {
811 shouldComponentUpdate ( nextProps ) {
@@ -13,13 +16,16 @@ class TogglePlayWithTranslation extends React.Component {
1316
1417 render ( ) {
1518 const klass = classNames (
16- 'co -toggle-play fa ' ,
19+ 'opp -toggle-play' ,
1720 this . props . className ,
18- this . props . active ? 'co-toggle-play--active' : 'co-toggle-play--inactive' ,
21+ this . props . active
22+ ? 'opp-toggle-play--active'
23+ : 'opp-toggle-play--inactive' ,
1924 ) ;
2025 const { t } = this . props ;
2126 return (
2227 < Button
28+ icon = { this . props . active ? < PauseIcon /> : < PlayIcon /> }
2329 variant = "plain"
2430 className = { klass }
2531 onClick = { this . props . onClick }
Original file line number Diff line number Diff line change 1+ .opp-toggle-play.pf-v5-c-button {
2+ align-items : center ;
3+ background-color : var (--pf-v5-global--BackgroundColor--100 );
4+ border : var (--pf-v5-global--BorderWidth--lg ) solid
5+ var (--pf-v5-global--BorderColor--100 );
6+ border-radius : 50% ;
7+ height : 37px ;
8+ margin-right : 15px ;
9+ padding : 0 ;
10+ width : 37px ;
11+
12+ & .opp-toggle-play--active {
13+ border-color : var (--pf-v5-global--palette--green-300 );
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments