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

Should layout template regions hide if empty? #4025

Open
laryn opened this issue Sep 9, 2019 · 2 comments
Open

Should layout template regions hide if empty? #4025

laryn opened this issue Sep 9, 2019 · 2 comments

Comments

@laryn
Copy link
Contributor

laryn commented Sep 9, 2019

If you define a flexible template, the region widths are hard-coded as percentages. Even if there are no blocks in a region, a gap is left where it would normally be.

Should we consider an option in the "Configure Row" settings to allow making them adapt to whether or not there is content? So if a sidebar region has no content, the other regions in that row grow to use up that space?

@stpaultim
Copy link
Member

This seems like it would be a pretty common need / use case. However, having not put flexible layouts to use yet I'm not sure how important that is. Also, not sure how difficult it would be to add this.

@herbdool
Copy link

@laryn I had assumed the flexible templates were using the already existing css layout file. So perhaps your question is more general? Or was there already a class for this?

@laryn laryn changed the title Should flexible layout template regions flex-grow? Should layout template regions hide if empty? Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants