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

Full width components don't span their container #530

Open
samiresua opened this issue Mar 27, 2024 · 4 comments
Open

Full width components don't span their container #530

samiresua opened this issue Mar 27, 2024 · 4 comments

Comments

@samiresua
Copy link

I'm struggling with some of my block custom components which are designed to fill their container. Are there any guides or advice around how to go about supporting this pattern?

These components appear to be restricted (width wise) due to the align/justify options of the ootb structural components. Are there plans to add stretch to the align/justify options?

@elylucas
Copy link
Member

Hi @samiresua, thanks for filing this issue. We are looking into this limitation, particularly around the extra div container we currently add right now in editor mode. I'll ping you back here when we have a fix for it.

@primeinteger
Copy link
Contributor

Hi @samiresua - are you still experiencing any issues with this? We have made a lot of changes recently to eliminate extra wrapping divs around elements, so this problem may have been resolved. Let us know if you're still having an issue.

@gcampes
Copy link

gcampes commented Sep 26, 2024

@elylucas and @primeinteger I still get this issue where the editing app displays components not full width

@primeinteger
Copy link
Contributor

@elylucas and @primeinteger I still get this issue where the editing app displays components not full width

Hey @gcampes, my apologies for not seeing your message sooner. Recently we added a new component definition option named wrapContainerWidth that you can try using to see if it fixes your full width component when editing the experience.

The documentation about this option is available here: https://www.contentful.com/developers/docs/experiences/register-custom-components/#changing-the-wrapping-container-width

Let us know if you have any questions!

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

No branches or pull requests

4 participants