Fix board edit size restoration and remove compare selector
This commit is contained in:
@@ -12,7 +12,7 @@ export function BoardControls() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Box marginBottom="4">
|
<Box marginBottom="4">
|
||||||
<WebsiteControls websiteId={websiteId} allowCompare={true} />
|
<WebsiteControls websiteId={websiteId} />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,12 +110,12 @@ export function BoardEditBody() {
|
|||||||
return (
|
return (
|
||||||
<Group groupRef={rowGroupRef} orientation="vertical" style={{ minHeight }}>
|
<Group groupRef={rowGroupRef} orientation="vertical" style={{ minHeight }}>
|
||||||
{rows.map((row, index) => (
|
{rows.map((row, index) => (
|
||||||
<Fragment key={row.id}>
|
<Fragment key={`${row.id}:${row.size ?? 'auto'}`}>
|
||||||
<Panel
|
<Panel
|
||||||
id={row.id}
|
id={row.id}
|
||||||
minSize={MIN_ROW_HEIGHT}
|
minSize={MIN_ROW_HEIGHT}
|
||||||
maxSize={MAX_ROW_HEIGHT}
|
maxSize={MAX_ROW_HEIGHT}
|
||||||
defaultSize={row.size}
|
defaultSize={row.size != null ? `${row.size}%` : undefined}
|
||||||
>
|
>
|
||||||
<BoardEditRow
|
<BoardEditRow
|
||||||
{...row}
|
{...row}
|
||||||
|
|||||||
@@ -84,8 +84,12 @@ export function BoardEditRow({
|
|||||||
return (
|
return (
|
||||||
<Group groupRef={handleGroupRef} className={styles.rowGroup}>
|
<Group groupRef={handleGroupRef} className={styles.rowGroup}>
|
||||||
{columns?.map((column, index) => (
|
{columns?.map((column, index) => (
|
||||||
<Fragment key={column.id}>
|
<Fragment key={`${column.id}:${column.size ?? 'auto'}`}>
|
||||||
<ResizablePanel id={column.id} minSize={MIN_COLUMN_WIDTH} defaultSize={column.size}>
|
<ResizablePanel
|
||||||
|
id={column.id}
|
||||||
|
minSize={MIN_COLUMN_WIDTH}
|
||||||
|
defaultSize={column.size != null ? `${column.size}%` : undefined}
|
||||||
|
>
|
||||||
<BoardEditColumn
|
<BoardEditColumn
|
||||||
{...column}
|
{...column}
|
||||||
canEdit={canEdit}
|
canEdit={canEdit}
|
||||||
|
|||||||
Reference in New Issue
Block a user