Skip to content

Commit

Permalink
fix: adjust width settings
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger committed Oct 12, 2023
1 parent c3f82da commit 1ed169c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
18 changes: 12 additions & 6 deletions src/user/campaignList/CampaignList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,17 @@ export function CampaignList({
renderCell: ({ row }) => (
<Status state={row.state} start={row.startAt} end={row.endAt} />
),
width: 150,
minWidth: 120,
maxWidth: 150,
},
{
field: "budget",
headerName: "Budget",
renderCell: ({ row }) => renderMonetaryAmount(row.budget, row.currency),
align: "right",
headerAlign: "right",
width: 150,
minWidth: 100,
maxWidth: 150,
},
{
field: "spend",
Expand All @@ -98,7 +100,8 @@ export function CampaignList({
renderEngagementCell(loading, row, "spend", engagementData),
align: "right",
headerAlign: "right",
width: 150,
minWidth: 100,
maxWidth: 150,
},
{
field: "view",
Expand All @@ -108,7 +111,8 @@ export function CampaignList({
renderEngagementCell(loading, row, "view", engagementData),
align: "right",
headerAlign: "right",
width: 250,
minWidth: 100,
maxWidth: 250,
},
{
field: "click",
Expand All @@ -118,7 +122,8 @@ export function CampaignList({
renderEngagementCell(loading, row, "click", engagementData),
align: "right",
headerAlign: "right",
width: 250,
minWidth: 100,
maxWidth: 250,
},
{
field: "landed",
Expand All @@ -129,7 +134,8 @@ export function CampaignList({
renderEngagementCell(loading, row, "landed", engagementData),
align: "right",
headerAlign: "right",
width: 250,
minWidth: 100,
maxWidth: 250,
},
{
field: "startAt",
Expand Down
15 changes: 10 additions & 5 deletions src/user/views/user/AdDetailTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export function AdDetailTable<T extends { id: string }>({
),
align: "right",
headerAlign: "right",
width: 250,
minWidth: 100,
maxWidth: 250,
},
{
field: "view",
Expand All @@ -46,7 +47,8 @@ export function AdDetailTable<T extends { id: string }>({
renderStatsCell(loading, "views", engagements.get(row.id)),
align: "right",
headerAlign: "right",
width: 250,
minWidth: 100,
maxWidth: 250,
},
{
field: "click",
Expand All @@ -56,7 +58,8 @@ export function AdDetailTable<T extends { id: string }>({
renderStatsCell(loading, "clicks", engagements.get(row.id)),
align: "right",
headerAlign: "right",
width: 250,
minWidth: 100,
maxWidth: 250,
},
{
field: "landed",
Expand All @@ -66,7 +69,8 @@ export function AdDetailTable<T extends { id: string }>({
renderStatsCell(loading, "landings", engagements.get(row.id)),
align: "right",
headerAlign: "right",
width: 250,
minWidth: 100,
maxWidth: 250,
},
{
field: "ctr",
Expand All @@ -76,7 +80,8 @@ export function AdDetailTable<T extends { id: string }>({
renderStatsCell(loading, "ctr", engagements.get(row.id)),
align: "right",
headerAlign: "right",
width: 250,
minWidth: 100,
maxWidth: 250,
},
);
}
Expand Down

0 comments on commit 1ed169c

Please sign in to comment.