diff --git a/src/App.jsx b/src/App.jsx
index 5a6803d..4d66a78 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -524,6 +524,7 @@ function FlowRow({
};
const isRowClickable = Boolean(onLabelClick) && !isEditing;
const isWrappedStepLayout = steps.length > 5;
+ const isSingleStepLayout = steps.length === 1;
const stepRows = isWrappedStepLayout
? steps.reduce((rows, step, index) => {
const rowIndex = Math.floor(index / 4);
@@ -691,7 +692,7 @@ function FlowRow({
{stepRows.map((row, rowIndex) => (
{row.map(({ step, index }, itemIndex) => (
@@ -715,9 +716,9 @@ function FlowRow({
{steps.map((step, index) => (
- {renderStepCard(step, index, 'min-w-[230px] flex-1')}
+ {renderStepCard(step, index, isSingleStepLayout ? 'w-full max-w-[320px]' : 'min-w-0 flex-1')}
{index < steps.length - 1 && (
-
+
@@ -1380,6 +1381,8 @@ function RelationTreePanel({ programs, onProgramClick, onOpenRelationPopup }) {
const nextVisitedIds = new Set(visitedIds);
nextVisitedIds.add(program.id);
+ const indent = Math.min(depth, 5) * 13;
+
return (
{depth > 0 && (
@@ -1390,7 +1393,7 @@ function RelationTreePanel({ programs, onProgramClick, onOpenRelationPopup }) {
)}
{hasChildren && !isRepeated ? (