diff --git a/client/src/components/column.tsx b/client/src/components/column.tsx index 8f9e437..b671018 100644 --- a/client/src/components/column.tsx +++ b/client/src/components/column.tsx @@ -295,7 +295,7 @@ export function ActionsColumn(actionsFn: (record: Obj) => Ac } interface SpoolIconColumnProps extends FilteredQueryColumnProps { - color: (record: Obj) => string | string[] | undefined; + color: (record: Obj) => string | { colors: string[]; vertical: boolean } | undefined; } export function SpoolIconColumn(props: SpoolIconColumnProps) { @@ -342,12 +342,12 @@ export function SpoolIconColumn(props: SpoolIconColumnProps< }, render: (rawValue, record: Obj) => { const value = props.transform ? props.transform(rawValue) : rawValue; - const colorStr = props.color(record); + const colorObj = props.color(record); return ( - {colorStr && ( + {colorObj && ( - + )} {value} diff --git a/client/src/components/multiColorPicker.tsx b/client/src/components/multiColorPicker.tsx index 64581b8..3ac6a1e 100644 --- a/client/src/components/multiColorPicker.tsx +++ b/client/src/components/multiColorPicker.tsx @@ -67,7 +67,7 @@ export function MultiColorPicker(props: { return ( <> - + {pickers} {values.length < (props.max ?? Infinity) && (