diff --git a/app/javascript/app/pages/ndc-compare-all-targets/ndc-compare-all-targets-table/ndc-compare-all-targets-table-component.jsx b/app/javascript/app/pages/ndc-compare-all-targets/ndc-compare-all-targets-table/ndc-compare-all-targets-table-component.jsx index 0445c860f1..18282800cd 100644 --- a/app/javascript/app/pages/ndc-compare-all-targets/ndc-compare-all-targets-table/ndc-compare-all-targets-table-component.jsx +++ b/app/javascript/app/pages/ndc-compare-all-targets/ndc-compare-all-targets-table/ndc-compare-all-targets-table-component.jsx @@ -51,7 +51,7 @@ const cellRenderer = ( } if (dataKey === 'Share of global GHG emissions') { - return cellData; + return {cellData}; } switch (cellData) { @@ -135,10 +135,10 @@ const CompareAllTable = ({ 115} + setColumnWidth={() => 144} setRowsHeight={() => 50} defaultColumns={columns} theme={compareTableTheme} diff --git a/app/javascript/app/pages/ndc-compare-all-targets/ndc-compare-all-targets-table/ndc-compare-all-targets-table-styles.scss b/app/javascript/app/pages/ndc-compare-all-targets/ndc-compare-all-targets-table/ndc-compare-all-targets-table-styles.scss index 34f65baedb..3a1513cf63 100644 --- a/app/javascript/app/pages/ndc-compare-all-targets/ndc-compare-all-targets-table/ndc-compare-all-targets-table-styles.scss +++ b/app/javascript/app/pages/ndc-compare-all-targets/ndc-compare-all-targets-table/ndc-compare-all-targets-table-styles.scss @@ -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; +}