Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Implement management of multiple viewports #253

Open
Guite opened this issue Aug 13, 2018 · 1 comment
Open

Implement management of multiple viewports #253

Guite opened this issue Aug 13, 2018 · 1 comment

Comments

@Guite
Copy link
Member

Guite commented Aug 13, 2018

It would be nice if there was a possibility for direct specification of different viewports.

At the moment all widget sizes and offsets are implemented for md. For example col-md-4 offset-md-2.
This could be expanded to allow different settings for the other ones.

For example we could include shoelace.

Layout data needs to store multiple values for each viewport of an element then. Also $contentItem->getMinimumAmountOfGridColumns() needs to return an array with elements for each viewport as well.

@Guite Guite added the Feature label Aug 13, 2018
@Guite Guite added this to the Future milestone Aug 13, 2018
@rallek
Copy link
Contributor

rallek commented Mar 18, 2019

Before looking for a perfect final solution I am making a temporary proposal.

Part 1:

The plugins in setting do get a defaut setting for the different view ports ( a new column for settimngs will be needed). So you can set xs, sm, md, lg and xl. E.g. for breadcrumb you are setting all of them to 12. That means if you place a new breadcrumb into your page it will be placed full width (because md is 12). If you afterwards correct it with the mouse the new size will be used.
If nothing is set in the plugin list all viewports will use the same setting like today.

Part 2:

After you have placed a new element on your site you can edit via the small arrow on the top right of the element the individual setting and overwrite the view port settings (but not the md because it is given already by the layout).

Part 3:

Add somewhere in the edit template a preview button for each viewport and open a modal with the right viewport width.. Might be it is wise only to show available viewports. It makes no sense to start a preview in lg on a smartphone I guess.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants