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

Can't resize columns in Columns Block #7315

Closed
maddisondesigns opened this issue Jun 15, 2018 · 19 comments
Closed

Can't resize columns in Columns Block #7315

maddisondesigns opened this issue Jun 15, 2018 · 19 comments
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.

Comments

@maddisondesigns
Copy link

It's not currently possible to resize the columns in the columns block. The ability to have columns is imperative for providing more flexible layouts. If you can only add equal width columns though, it makes it extremely limiting.

Ideally, you should be able to specify a percentage width for each column. At a bare minimum though, you should at least be able to select a different layout such as:

If there's 2 columns: 50/50, 25/75, 75/25
If there's 3 columns: 33.3/33.3/33.3, 50/25/25, 25/25/50, 25/50/25
If there's 4 columns: 25/25/25/25, 40/20/20/20, 20/20/20/40
etc...

Gutenberg 3.0.1

@chrisvanpatten
Copy link
Member

Further context/previous related discussions: #4900, #6650, #6461, #4902, #5886, #6048, #219

@rickcurran
Copy link

The ability to define this via various responsive classes defined in CSS would definitely be useful.

@sylvaincordiere
Copy link

This request have been ask many time.
Is there any decision taken by gutenberg team ?
Is there any plan to add this in wordpress 5, later or never

@ZebulanStanphill
Copy link
Member

I agree that it would be nice to see a decision on whether the Columns block will be getting non-equal width and responsive columns before WordPress 5.0 or not. In its current state, the Columns block, while definitely better than it was initially, is still useless for nearly any practical applications – primarily due to the lack of responsiveness, though non-equal width columns are almost as essential.

@designsimply designsimply added [Type] Enhancement A suggestion for improvement. [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed labels Jul 9, 2018
@designsimply
Copy link
Member

Thank you for the feedback! It's a good question. Since the Columns block is still in beta and because the question has been asked in a few other places, I am closing this issue in favor of #6048 which I believe should cover this issue once a decision has been made there.

@emar
Copy link

emar commented Jan 25, 2019

Just started usin Gutenberg and I like it,
I was creating two columns and realized I can't change their width,
Another editor I'm using to change width, you'd just drag the border of the block/column to change it.
I can see gutenberg getting like Page Builder by SiteOrigin.. well I hope so.. great stuff!

Sounds on WP

@designsimply
Copy link
Member

@emar the Phase 2 Scope & Features, which are currently underway, mention "resizing columns in the column block" so that is a planned update.

You might also like to follow the discussion in #4900 about a Section/Container block which is also mentioned as a planned update for Phase 2.

@emar
Copy link

emar commented Jan 26, 2019

Thanks I'll keep an eye open for further releases, sound great works nicely.
The great thing is I'll have no need for two extra plugins to have a custom editor... soon.

@designsimply
Copy link
Member

I love hearing that! Hey, if there's any chance you'd like to help test one or two things from new releases of Gutenberg, please check out https://make.wordpress.org/test/. 😊

@kevinckc
Copy link

kevinckc commented Apr 16, 2019

A workaround to resize (width) with column

Conside the column structure to be below and than add a custom css class "w-two-one" which defined in theme css file:

<div class="wp-block-columns w-two-one ...">
    <div class="wp-block-column">...</div>
    <div class="wp-block-column">...</div>
</div>

Edit Post ‹ GLS HK — WordPress 2019-04-16 11-05-21

In the theme CSS, something like (btw, margin-left:0 is optional):

.wp-block-columns.w-two-one {}
.wp-block-columns.w-two-one .wp-block-column { flex-basis: 33.3%; margin-left: 0; }
.wp-block-columns.w-two-one .wp-block-column:first-child { flex-basis: 66.6%; }

@bkline
Copy link

bkline commented Jun 11, 2019

I am closing this issue in favor of #6048 which I believe should cover this issue once a decision has been made there.

Unfortunately, that ticket has been closed without addressing this issue.

@bkline
Copy link

bkline commented Jun 11, 2019

How do I reopen this issue?

@gbwashleybrown
Copy link

This still is an issue?

@ZebulanStanphill
Copy link
Member

@gbwashleybrown The issue was fixed a little while ago. You can change column widths in the latest version of the Gutenberg plugin. The changes won't come to WordPress core until WordPress 5.3, though.

@My1
Copy link

My1 commented Jan 5, 2020

okay. well I am on 5.3.2 and while I do get a few options for cols when creating them there's still 2 small issues:

  1. you dont have a lot of control over the sizes
  2. I have found no way to change the size after the fact

@vladoa
Copy link

vladoa commented Jan 13, 2020

One issue I have with the columns is that if I choose to have 4 columns, there is no way for me to set the following:
17/33/33/17 or 10/40/40/10

Every time I set the middle two columns to specific width (let's say 33), Gutenberg recalculates the width of the rest of the blocks, making it impossible to adjust the values to all 4 columns.

Second thing is that they look horrible within the editor. Gutenberg is far too narrow for managing these columns. If I choose to have 6 columns then it gets ridiculously narrow. A popup to adjust columns would be an elegant solution to this problem.

@My1
Copy link

My1 commented Jan 13, 2020

well 25/50/50/25 is not something you can really do percentage-wise as that is bigger than a hundred.

for a 1/2/2/1 ratio you rather have 17/33/33/17

@vladoa
Copy link

vladoa commented Jan 13, 2020

Sorry, bad math. I updated my comment. But you get what I mean, right?

@ZebulanStanphill
Copy link
Member

@vladoa There is currently a PR that would fix the issue you are describing: #19515.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests