Split board view/edit rendering and isolate edit interactions

This commit is contained in:
Mike Cao 2026-02-12 22:36:23 -08:00
parent b09694ddb6
commit d8c41ac8a6
15 changed files with 249 additions and 111 deletions

View file

@ -0,0 +1,21 @@
import type { BoardColumn } from '@/lib/types';
import { BoardViewColumn } from './BoardViewColumn';
import { MIN_COLUMN_WIDTH } from './boardConstants';
export function BoardViewRow({ columns }: { columns: BoardColumn[] }) {
return (
<div style={{ display: 'flex', gap: 12, width: '100%', overflowX: 'auto' }}>
{columns.map(column => (
<div
key={column.id}
style={{
flex: `${column.size ?? 1} 1 0%`,
minWidth: MIN_COLUMN_WIDTH,
}}
>
<BoardViewColumn component={column.component} />
</div>
))}
</div>
);
}