Skip to content

Commit fcccfca

Browse files
committed
Fix PLR and TR events page
1 parent 03c093d commit fcccfca

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

src/components/pipelines-tasks/tasks-details-pages/events/event-stream.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const timeout = { enter: 150 };
1818

1919
const measurementCache = new CellMeasurerCache({
2020
fixedWidth: true,
21+
defaultHeight: 120,
22+
minHeight: 120,
2123
});
2224

2325
class SysEvent extends React.Component<SysEventProps> {

src/components/pipelines-tasks/tasks-details-pages/events/toggle-play.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import classNames from 'classnames';
33
import * as PropTypes from 'prop-types';
44
import { Button } from '@patternfly/react-core';
55
import { withTranslation } from 'react-i18next';
6+
import { PlayIcon, PauseIcon } from '@patternfly/react-icons';
7+
8+
import './toggle-play.scss';
69

710
class 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}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

0 commit comments

Comments
 (0)