Skip to content

Commit

Permalink
[DT-1071] Remove description column from studies (#2756)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-rubenstein authored Dec 18, 2024
1 parent 8c494e2 commit 787f2b6
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/components/data_search/DatasetSearchTableConstants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export const makeStudyTableHeaders = (datasets: DatasetTerm[], selected: number[
interface StudyCellWidths{
selected: number;
studyName: string;
description: string;
participants: string;
phenotype: string;
species: string;
Expand All @@ -69,10 +68,9 @@ export const makeStudyTableHeaders = (datasets: DatasetTerm[], selected: number[
selected: 50,
// subtract the selected column width
studyName: 'calc(25% - 50px)',
description: '20%',
participants: '10%',
phenotype: '15%',
species: '10%',
phenotype: '20%',
species: '15%',
piName: '10%',
dataCustodians: '20%'
};
Expand Down Expand Up @@ -127,20 +125,6 @@ export const makeStudyTableHeaders = (datasets: DatasetTerm[], selected: number[
label: datasets[0].study.studyName
})
},
{
label: 'Description',
sortable: true,
cellStyle: makeHeaderStyle(studyCellWidths.description),
cellDataFn: (datasets) => ({
data: <OverflowTooltip place={'top'} tooltipText={datasets[0].study.description} id={`${datasets[0].study.studyId}-study-description-data`}>
{trimNewlineCharacters(datasets[0].study.description)}
</OverflowTooltip>,
value: datasets[0].study.description,
id: `${datasets[0].study.studyId}-study-description`,
style: makeRowStyle(studyCellWidths.description),
label: datasets[0].study.description
})
},
{
label: 'Participants',
sortable: true,
Expand Down

0 comments on commit 787f2b6

Please sign in to comment.