Skip to content

we don't show the canvas flexGap control between generated items #5405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bkrmendy opened this issue Apr 26, 2024 · 0 comments · Fixed by #5407
Closed

we don't show the canvas flexGap control between generated items #5405

bkrmendy opened this issue Apr 26, 2024 · 0 comments · Fixed by #5407
Assignees

Comments

@bkrmendy
Copy link
Contributor

Problem
The on-canvas gap control doesn't show up between items that are generated, even if those are not in a fragment

Code

<div
        style={{
          height: 'max-content',
          position: 'absolute',
          left: 48,
          top: 112,
          display: 'flex',
          flexDirection: 'row',
          width: 'max-content',
          gap: 29,
        }}
      >
     <div>MyComponent</div>
        {[1, 2, 3].map(({ a, b, c }) => (
          <img
            src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/pyramid_fullsize@2x.jpg?raw=true'
            alt='Utopia logo'
            style={{ width: 118, height: 150 }}
          />
        ))}
        <View
          src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/pyramid_fullsize@2x.jpg?raw=true'
          alt='Utopia logo'
          style={{ width: 118, height: 150 }}
        />
        <img
          src='https://github.com/concrete-utopia/utopia/blob/master/editor/resources/editor/pyramid_fullsize@2x.jpg?raw=true'
          alt='Utopia logo'
          style={{ width: 118, height: 150 }}
        />
      </div>

Image

@bkrmendy bkrmendy self-assigned this Apr 26, 2024
@bkrmendy bkrmendy linked a pull request Apr 26, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant