keep the index row as a colour chip (#1039)

This commit is contained in:
Alex Christoffer Rasmussen
2024-06-03 22:38:22 +02:00
committed by GitHub
parent 2076080c5f
commit a3b21072eb
4 changed files with 8 additions and 11 deletions
@@ -60,7 +60,7 @@ export default function CuesheetHeader(props: CuesheetHeaderProps) {
return (
<DndContext key={key} sensors={sensors} collisionDetection={closestCorners} onDragEnd={handleOnDragEnd}>
<tr key={headerGroup.id}>
{showIndexColumn && <th className={style.indexColumn}>#</th>}
<th className={style.indexColumn}>{showIndexColumn && '#'}</th>
<SortableContext key={key} items={headerGroup.headers} strategy={horizontalListSortingStrategy}>
{headerGroup.headers.map((header) => {
const width = header.getSize();