rearrange sub cols

This commit is contained in:
andrzej 2024-07-04 18:31:22 +02:00
parent b69a172dd5
commit 6e42145e88
2 changed files with 20 additions and 28 deletions

View File

@ -11,6 +11,26 @@ const columnHelper = createColumnHelper<SubComplete>()
export const columns: ColumnDef<SubComplete>[] = [ export const columns: ColumnDef<SubComplete>[] = [
selectCol, selectCol,
{
accessorFn: row => {
if (row.story) {
return row.story.title
}
return "RECORD DELETED"
},
id: "story",
header: "Story"
},
{
accessorFn: row => {
if (row.pub) {
return row.pub.title
}
return "RECORD DELETED"
},
id: "pub",
header: "Publication"
},
{ {
accessorFn: row => new Date(row.submitted), accessorFn: row => new Date(row.submitted),
id: "submitted", id: "submitted",
@ -57,26 +77,6 @@ export const columns: ColumnDef<SubComplete>[] = [
id: "response", id: "response",
header: "Response" header: "Response"
}, },
{
accessorFn: row => {
if (row.pub) {
return row.pub.title
}
return "RECORD DELETED"
},
id: "pub",
header: "Publication"
},
{
accessorFn: row => {
if (row.story) {
return row.story.title
}
return "RECORD DELETED"
},
id: "story",
header: "Story"
},
] ]

View File

@ -959,14 +959,6 @@ body {
width: 100vw; width: 100vw;
} }
.w-8 {
width: 2rem;
}
.w-16 {
width: 4rem;
}
.min-w-\[8rem\] { .min-w-\[8rem\] {
min-width: 8rem; min-width: 8rem;
} }