Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit e493cf6

Browse files
image column headers in DE should no longer be centered
1 parent a8cd9f4 commit e493cf6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/MainView/DataView/DataView.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,13 @@ export const DataView = injector(
248248
},
249249
},
250250
{
251-
resolver: (col) => col.type === "Image",
251+
resolver: (col) => col.type === "Image" && getRoot(col.original).SDK.type !== 'DE',
252252
style: { width: 150, justifyContent: "center" },
253253
},
254+
{
255+
resolver: (col) => col.type === "Image" && getRoot(col.original).SDK.type === 'DE',
256+
style: { width: 150 },
257+
},
254258
{
255259
resolver: (col) => ["Date", "Datetime"].includes(col.type),
256260
style: { width: 240 },

src/components/MainView/DataViewOld/Table.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,13 @@ export const DataView = injector(
247247
},
248248
},
249249
{
250-
resolver: (col) => col.type === "Image",
250+
resolver: (col) => col.type === "Image" && getRoot(col.original).SDK.type !== 'DE',
251251
style: { width: 150, justifyContent: "center" },
252252
},
253+
{
254+
resolver: (col) => col.type === "Image" && getRoot(col.original).SDK.type === 'DE',
255+
style: { width: 150 },
256+
},
253257
{
254258
resolver: (col) => ["Date", "Datetime"].includes(col.type),
255259
style: { width: 240 },

0 commit comments

Comments
 (0)