Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/sim/lib/workflows/autolayout/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export { BLOCK_DIMENSIONS, CONTAINER_DIMENSIONS } from '@/lib/workflows/blocks/b
/**
* Horizontal spacing between layers (columns)
*/
export const DEFAULT_HORIZONTAL_SPACING = 550
export const DEFAULT_HORIZONTAL_SPACING = 350

/**
* Vertical spacing between blocks in the same layer
Expand Down Expand Up @@ -81,7 +81,7 @@ export const DEFAULT_LAYOUT_OPTIONS = {
/**
* Default horizontal spacing for containers (tighter than root level)
*/
export const DEFAULT_CONTAINER_HORIZONTAL_SPACING = 400
export const DEFAULT_CONTAINER_HORIZONTAL_SPACING = 250
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: changing this constant has no effect because containers.ts:18 has a duplicate definition that shadows this export

Suggested change
export const DEFAULT_CONTAINER_HORIZONTAL_SPACING = 250
export const DEFAULT_CONTAINER_HORIZONTAL_SPACING = 250

The duplicate constant in containers.ts should import this value instead:

import { DEFAULT_CONTAINER_HORIZONTAL_SPACING } from '@/lib/workflows/autolayout/constants'
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/sim/lib/workflows/autolayout/constants.ts
Line: 84:84

Comment:
**logic:** changing this constant has no effect because `containers.ts:18` has a duplicate definition that shadows this export

```suggestion
export const DEFAULT_CONTAINER_HORIZONTAL_SPACING = 250
```

The duplicate constant in `containers.ts` should import this value instead:
```typescript
import { DEFAULT_CONTAINER_HORIZONTAL_SPACING } from '@/lib/workflows/autolayout/constants'
```

How can I resolve this? If you propose a fix, please make it concise.


/**
* Container-specific layout options (tighter spacing for nested layouts)
Expand Down