Skip to content

Commit

Permalink
Improve Targets comparison table display
Browse files Browse the repository at this point in the history
  • Loading branch information
SARodrigues committed Dec 11, 2024
1 parent ceb2cae commit b25a35e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const cellRenderer = (
}

if (dataKey === 'Share of global GHG emissions') {
return cellData;
return <span className={styles.ghgEmissionsColumn}>{cellData}</span>;
}

switch (cellData) {
Expand Down Expand Up @@ -135,10 +135,10 @@ const CompareAllTable = ({
<Table
data={tableData}
tableHeight={550}
tableWidthOffset={-100}
tableWidthOffset={-82}
parseHtml
titleLinks={titleLinks}
setColumnWidth={() => 115}
setColumnWidth={() => 144}
setRowsHeight={() => 50}
defaultColumns={columns}
theme={compareTableTheme}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@
height: 30px;
width: 30px;
}

.ghgEmissionsColumn {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding-left: 6px;
padding-right: 48px;
}

0 comments on commit b25a35e

Please sign in to comment.