Modify Shot Data Table Functions

This commit is contained in:
2026-03-05 22:12:02 +08:00
parent c8c4c99a6e
commit 1f229bff6c
26 changed files with 212 additions and 186 deletions
+2 -12
View File
@@ -74,8 +74,8 @@ export const createShotColumns = (
id: 'thumbnail',
header: 'Thumbnail',
cell: () => {
return h('div', { class: 'w-20 h-11 bg-muted flex items-center justify-center' }, [
h(Camera, { class: 'h-6 w-6 text-muted-foreground' }),
return h('div', { class: 'w-20 h-11 bg-gray-500/20 flex items-center justify-center' }, [
h(Camera, { class: 'h-6 w-6 text-muted-foreground text-gray-900' }),
])
},
enableSorting: false,
@@ -121,16 +121,6 @@ export const createShotColumns = (
return h(Badge, { variant: 'outline', class: 'text-xs' }, () => episodeName)
},
},
// Frame Range column (not sortable)
{
id: 'frameRange',
header: 'Frame Range',
cell: ({ row }) => {
const shot = row.original
return h('span', { class: 'text-sm' }, `${shot.frame_start}-${shot.frame_end}`)
},
enableSorting: false,
},
// Frames column (frame count)
{
id: 'frames',