From 0f56a5c1a5963919ba5782b876d8a80cdca1d439 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Mon, 5 Nov 2018 19:19:16 +0530 Subject: [PATCH] Fix campaign stats cell width --- frontend/my/src/Campaigns.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/my/src/Campaigns.js b/frontend/my/src/Campaigns.js index daded3c..4ed47ff 100644 --- a/frontend/my/src/Campaigns.js +++ b/frontend/my/src/Campaigns.js @@ -45,7 +45,7 @@ class Campaigns extends React.PureComponent { title: "Name", dataIndex: "name", sorter: true, - width: "30%", + width: "20%", vAlign: "top", render: (text, record) => { const out = []; @@ -85,7 +85,7 @@ class Campaigns extends React.PureComponent { { title: "Lists", dataIndex: "lists", - width: "20%", + width: "25%", align: "left", className: "lists", render: (lists, record) => { @@ -93,15 +93,16 @@ class Campaigns extends React.PureComponent { lists.forEach((l) => { out.push( { l.name } - ) - }) - - return out - } - }, + ) + }) + + return out + } + }, { title: "Stats", className: "stats", + width: "30%", render: (text, record) => { if(record.status !== cs.CampaignStatusDraft && record.status !== cs.CampaignStatusScheduled) { return this.renderStats(record)