diff --git a/src/components/plan/ContentStrategy.tsx b/src/components/plan/ContentStrategy.tsx index 0ec04c5..f15f7fe 100644 --- a/src/components/plan/ContentStrategy.tsx +++ b/src/components/plan/ContentStrategy.tsx @@ -144,43 +144,55 @@ export default function ContentStrategy({ data }: ContentStrategyProps) { )} {/* Tab 3: Production Workflow */} - {activeTab === 'workflow' && ( - - {data.workflow.map((step, i) => ( - - - - {step.step} - - {step.name} - {step.description} - - - {step.owner} - - - {step.duration} - - - - {i < data.workflow.length - 1 && ( - - )} - - ))} - - )} + {activeTab === 'workflow' && (() => { + // step 수에 따라 동일 너비 grid 컬럼 매핑 (Tailwind purge 안전) + const cols = data.workflow.length; + const gridColsClass = + cols <= 3 ? 'md:grid-cols-3' + : cols === 4 ? 'md:grid-cols-4' + : cols === 5 ? 'md:grid-cols-5' + : cols === 6 ? 'md:grid-cols-6' + : cols === 7 ? 'md:grid-cols-7' + : 'md:grid-cols-8'; + + return ( + + {data.workflow.map((step, i) => ( + + + + {step.step} + + {step.name} + {step.description} + + + {step.owner} + + + {step.duration} + + + + {i < data.workflow.length - 1 && ( + + )} + + ))} + + ); + })()} {/* Tab 4: Repurposing */} {activeTab === 'repurposing' && (
{step.description}