Fixed BarChart rendering in boards.

This commit is contained in:
Mike Cao committed 2026-02-12 18:10:04 -08:00
1 parent 9e9e44519d
commit b816e951a5
7 files changed
+76 -21

No files matched your search

@@ -50,8 +50,6 @@ export function BoardColumn({
return (
<Column
marginTop="3"
marginLeft="3"
width="100%"
height="100%"
alignItems="center"
+8 -3
View File
@@ -1,7 +1,12 @@
import { Button, Column, Icon, Tooltip, TooltipTrigger } from '@umami/react-zen';
import { produce } from 'immer';
import { Fragment } from 'react';
import { Group, type GroupImperativeHandle, Panel, Separator } from 'react-resizable-panels';
import {
Group,
type GroupImperativeHandle,
Panel as ResizeablePanel,
Separator,
} from 'react-resizable-panels';
import { v4 as uuid } from 'uuid';
import { useBoard } from '@/components/hooks';
import { ChevronDown, Minus, Plus } from '@/components/icons';
@@ -79,7 +84,7 @@ export function BoardRow({
<Group groupRef={handleGroupRef} style={{ height: '100%' }}>
{columns?.map((column, index) => (
<Fragment key={column.id}>
<Panel id={column.id} minSize={MIN_COLUMN_WIDTH} defaultSize={column.size}>
<ResizeablePanel id={column.id} minSize={MIN_COLUMN_WIDTH} defaultSize={column.size}>
<BoardColumn
{...column}
editing={editing}
@@ -87,7 +92,7 @@ export function BoardRow({
onSetComponent={handleSetComponent}
canRemove={columns?.length > 1}
/>
</Panel>
</ResizeablePanel>
{index < columns?.length - 1 && <Separator />}
</Fragment>
))}
+3 -3
View File
@@ -1,8 +1,8 @@
import type { SVGProps } from 'react';
import { memo, type SVGProps } from 'react';
const SvgBarChart = (props: SVGProps<SVGSVGElement>) => (
const SvgBarChart = memo((props: SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width={512} height={512} viewBox="0 0 24 24" {...props}>
<path d="M7 13v9a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1m7-12h-4a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1m8 5h-4a1 1 0 0 0-1 1v15a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1" />
</svg>
);
));
export default SvgBarChart;