widgets and other fixes
This commit is contained in:
@@ -146,9 +146,9 @@ export default function WorkflowCompletionWidget({
|
||||
{ label: 'Pages Published', value: writer.contentPublished, barColor: `var(${WORKFLOW_COLORS.writer.pagesPublished})` },
|
||||
];
|
||||
|
||||
// Calculate max value for proportional bars (across both columns)
|
||||
const allValues = [...plannerItems, ...writerItems].map(i => i.value);
|
||||
const maxValue = Math.max(...allValues, 1);
|
||||
// Since these are totals (not percentages), show full-width bars
|
||||
// The value itself indicates the metric, not the bar width
|
||||
const maxValue = 1; // Always show 100% filled bars
|
||||
|
||||
return (
|
||||
<Card className={`p-5 bg-white dark:bg-gray-900 border border-[color:var(--color-stroke)] dark:border-gray-700 min-w-0 ${className}`}>
|
||||
|
||||
Reference in New Issue
Block a user