Skip to content

Commit

Permalink
Fix campaign stats cell width
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Nov 5, 2018
1 parent 44442b2 commit 0f56a5c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions frontend/my/src/Campaigns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down Expand Up @@ -85,23 +85,24 @@ class Campaigns extends React.PureComponent {
{
title: "Lists",
dataIndex: "lists",
width: "20%",
width: "25%",
align: "left",
className: "lists",
render: (lists, record) => {
const out = []
lists.forEach((l) => {
out.push(
<span className="name" key={`name-${l.id}`}><Link to={ `/subscribers/lists/${l.id}` }>{ l.name }</Link></span>
)
})

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)
Expand Down

0 comments on commit 0f56a5c

Please sign in to comment.