Skip to content

Commit dc58ede

Browse files
committed
🐛 Update Freq Col Alignment in Timeline Event Availability Chart
1 parent 9573b27 commit dc58ede

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/pages/studyView/table/ClinicalEventTypeCountTable.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { observer } from 'mobx-react';
66
import { action, computed, makeObservable, observable } from 'mobx';
77
import _ from 'lodash';
88
import MobxPromise from 'mobxpromise';
9-
import React from 'react';
9+
import React, { CSSProperties } from 'react';
1010
import styles from 'pages/studyView/table/tables.module.scss';
1111
import {
1212
toNumericValue,
@@ -29,12 +29,18 @@ import { getFrequencyStr } from 'pages/studyView/StudyViewUtils';
2929

3030
export interface IClinicalEventTypeDataColumnCellProp {
3131
data: string;
32+
style?: CSSProperties;
33+
className?: string;
3234
}
3335

3436
function ClinicalEventTypeColumnCell(
3537
props: IClinicalEventTypeDataColumnCellProp
3638
) {
37-
return <div>{props.data}</div>;
39+
return (
40+
<div className={props.className} style={props.style}>
41+
{props.data}
42+
</div>
43+
);
3844
}
3945

4046
export function filterClinicalEventTypeCountCell(
@@ -194,6 +200,8 @@ export default class ClinicalEventTypeCountTable extends React.Component<
194200
),
195201
render: (data: ClinicalEventTypeCount) => (
196202
<ClinicalEventTypeColumnCell
203+
className={styles.pullRight}
204+
style={{ marginLeft: cellMargin }}
197205
data={this.calculateClinicalEventTypeFreqString(
198206
data,
199207
this.selectedPatientCount

0 commit comments

Comments
 (0)