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

Add width and margin to stacks #38

Merged
merged 4 commits into from
Feb 7, 2023
Merged

Add width and margin to stacks #38

merged 4 commits into from
Feb 7, 2023

Conversation

TobiasBales
Copy link
Collaborator

This solves most issues open in #2

  • Add width (pixels, % and 100%-xpx)
  • Add margin (pixels)

Screenshot 2023-02-07 at 14 10 25

To see above you can run bundle exec ruby examples/stack.rb

Copy link
Collaborator

@CalvinWalzel CalvinWalzel left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! Just a minor thing. I think that's also where the conflict is.

@@ -32,7 +32,7 @@ def method_missing(name, *args, &block)
result = block.call(self)
@buffer += result if result.is_a?(String)
else
@buffer += args.first
@buffer += args.first if args.first.is_a?(String)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this has already been merged to main in a slightly different form.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

pushed, tests still pass

@Schwad Schwad merged commit 5388ffa into main Feb 7, 2023
@noahgibbs noahgibbs deleted the improve-stack branch February 26, 2023 22:48
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.

3 participants