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
ListBlock
add button confusing spacing on nested blocks
#11888
Comments
Hey @jhonatan-lopes, i was trying to reproduce your issue, but got stuck, here are the steps which i did to reproduce, and please correct where i was wrong. I initiated a fresh Wagtail project named "myproject" by executing the command then, in already present app "home", in its models.py i pasted your code
and when i did python manage.py makemigrations, migrate, createsuperuser, runserver/. I headed to: and then tried to create an instance, my page was not like yours: |
Hey @TARishabh, the screenshot that you added actually shows the problem. Please note the extra spacing after "Add a foo" on "Foo" block and before the + sign, which is not present on "Foo without a help text". If you had multiple "Foo" blocks in a sequence (or multiple |
Issue Summary
When multiple
ListBlock
s are added in a Snippet, the add button (the + sign) gets an extra spacing that makes it become closer to the following element instead of the one that the button is actually associated with.This seems to be more relevant when the block has a help text.
Screenshots:
Steps to Reproduce
wagtail start myproject
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Technical details
Browser version:confirmed across multiple browsers.Working on this
Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.
The text was updated successfully, but these errors were encountered: