mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 11:05:36 +01:00
Split board view/edit rendering and isolate edit interactions
This commit is contained in:
parent
b09694ddb6
commit
d8c41ac8a6
15 changed files with 249 additions and 111 deletions
21
src/app/(main)/boards/[boardId]/BoardViewRow.tsx
Normal file
21
src/app/(main)/boards/[boardId]/BoardViewRow.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue