Fragment "container": add 'gap' configuration and responsive behaviour

What is the problem you are trying to solve?

“Container” fragment can be configured as a “flex row” (or “flex column”). Actually Liferay allows to set corresponding css properties such as “align-items”, “justify-content”, “flex-wrap” but not “GAP” one.

This is a very useful (and sometimes lifesaver) feature to space items and is surely better than adding margins on each children element.

In addition, very often is common to use “flex-row” in desktop breakpoint but “flex-column” in mobile one. Actually is not possible to change behaviour between breakpoints, ad allowed for other properties such as color, margins, etc.

What is your project about? (e. g. Intranet, Partner Portal, Enterprise Website, etc)

Every website

What is your proposed solution? (optional)

As described above:

  1. Add “gap” configuration field when a “flex” behaviour is selected for “Container fragment”

  2. Add ability to change behaviour between breakpoint such other properties like text color and margins

2 Likes

1. Gap Configuration Alternative


2. Breakpoint-Specific Styling

  • Ability to Change Behavior: You can already modify properties like text color and margins for an element based on the viewing breakpoint (e.g., desktop, tablet, mobile).