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

Ability to adjust containers, eg width or number of columns #122

Open
stephen-fueldesign opened this issue Jul 2, 2018 · 5 comments
Open

Comments

@stephen-fueldesign
Copy link

Quite often I find that while constructing a page I don't often get the correct column count or column break points correct the first time round.

So far I have not found an easy way to adjust the number of columns or the sizes (breakpoints) other than recreating columns under the current column and moving components from the old section into the new section.

Below are some screenshots showing how Duda allows hovering over a section/container and the borders become bolder and draggable, hence easily allowing one to adjust the column widths.

My wishlist would be for columns to be adjustable via dragging, and if not achievable, then adjustable in container settings.

First image shows normal editor view
ss0

The rest shows me adjusting the width.
ss1
ss2
ss3

@bradmac
Copy link
Contributor

bradmac commented Jul 3, 2018

👍 definitely a nice to have, but as long as its changing cols based on the 12 col grid system and not setting widths directly in pixels or percentage.

Also would be nice to allow cols to be split, eg so a 2 col container can be made into a 3 col container.

@ducdhm
Copy link
Contributor

ducdhm commented Jul 11, 2018

@bradmac

Also would be nice to allow cols to be split, eg so a 2 col container can be made into a 3 col container.

It's possible but we need specification for it. Example: When 2 col (6-6), we add other col, so what happens? 2 existing cols will be change to 5-5 and new col will be 2?

@stephen-fueldesign
Copy link
Author

What would make sense to me, and other users would be if you have two cols, (6-6) and you split the 2nd col, you should get (6-3-3).

Which means:
12 => 6-6
10 => 5-5
8 => 4-4
6 => 3-3
4 => 2-2
2 => 1-1

Odds could be handle this way:
11 => 6-5
9 => 5-4
7 => 4-3
5 => 3-2
3 => 2-1

That would make sense. Anything else, you have access to the HTML to fine tune.

@ducdhm
Copy link
Contributor

ducdhm commented Jul 11, 2018

@stephen-fueldesign So how about the case 6-5-1 and I add a col at last?

@stephen-fueldesign
Copy link
Author

@ducdhm I would say in the scenario 6-5-1, cols 6 and 5 can be split, but not 1. And in the original post my request was to have all columns adjustable with a hover-drag-and-hold-slider in a way that 6-5-1 becomes 4-4-1, or 6-4-2 (all keeping within 12 grid column).

Adding columns is achieved by splitting an existing column that is "splittable".

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