Skip to content
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

feat: add auto shrink #236

Merged
merged 1 commit into from
Apr 22, 2023
Merged

feat: add auto shrink #236

merged 1 commit into from
Apr 22, 2023

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented Apr 22, 2023

Now auto-shrink or enlarge the scopes to fit its children. This PR also adds a Command Palette triggered by Ctrl+k (or Cmd+k on macOS) via kbar; auto-layout can be invoked in the Command Palette. In the future, we could add a setting option to run auto layout automatically. Screenshot:

Before auto-layout, and the Command Palette:

Screenshot from 2023-04-21 18-13-01

After auto-layout:

Screenshot from 2023-04-21 18-13-13

@lihebi
Copy link
Collaborator Author

lihebi commented Apr 22, 2023

Also, since we have auto layout now, the following features are removed:

  1. restrict pods to be inside a scope (the extent: parent)
  2. auto-align the node to keep it bound in the scope when moving into the scope.

@lihebi lihebi merged commit d5c8361 into codepod-io:main Apr 22, 2023
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 this pull request may close these issues.

1 participant