Fix campaign stats cell width
This commit is contained in:
parent
44442b2b62
commit
0f56a5c1a5
|
@ -45,7 +45,7 @@ class Campaigns extends React.PureComponent {
|
||||||
title: "Name",
|
title: "Name",
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
width: "30%",
|
width: "20%",
|
||||||
vAlign: "top",
|
vAlign: "top",
|
||||||
render: (text, record) => {
|
render: (text, record) => {
|
||||||
const out = [];
|
const out = [];
|
||||||
|
@ -85,7 +85,7 @@ class Campaigns extends React.PureComponent {
|
||||||
{
|
{
|
||||||
title: "Lists",
|
title: "Lists",
|
||||||
dataIndex: "lists",
|
dataIndex: "lists",
|
||||||
width: "20%",
|
width: "25%",
|
||||||
align: "left",
|
align: "left",
|
||||||
className: "lists",
|
className: "lists",
|
||||||
render: (lists, record) => {
|
render: (lists, record) => {
|
||||||
|
@ -93,15 +93,16 @@ class Campaigns extends React.PureComponent {
|
||||||
lists.forEach((l) => {
|
lists.forEach((l) => {
|
||||||
out.push(
|
out.push(
|
||||||
<span className="name" key={`name-${l.id}`}><Link to={ `/subscribers/lists/${l.id}` }>{ l.name }</Link></span>
|
<span className="name" key={`name-${l.id}`}><Link to={ `/subscribers/lists/${l.id}` }>{ l.name }</Link></span>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Stats",
|
title: "Stats",
|
||||||
className: "stats",
|
className: "stats",
|
||||||
|
width: "30%",
|
||||||
render: (text, record) => {
|
render: (text, record) => {
|
||||||
if(record.status !== cs.CampaignStatusDraft && record.status !== cs.CampaignStatusScheduled) {
|
if(record.status !== cs.CampaignStatusDraft && record.status !== cs.CampaignStatusScheduled) {
|
||||||
return this.renderStats(record)
|
return this.renderStats(record)
|
||||||
|
|
Loading…
Reference in New Issue