Skip to content

Commit dfc1722

Browse files
committed
MC-3397: Content Vertical Alignment inside a Container for Tab Item
- add Layout section to Edit Tab form - move min height field to Layout section - add vertical alignment field
1 parent d4da457 commit dfc1722

File tree

1 file changed

+40
-14
lines changed

1 file changed

+40
-14
lines changed

app/code/Magento/PageBuilder/view/adminhtml/ui_component/pagebuilder_tab_item_form.xml

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,6 @@
8484
</validation>
8585
</settings>
8686
</field>
87-
<field name="min_height" sortOrder="30" formElement="input">
88-
<settings>
89-
<label translate="true">Minimum Height</label>
90-
<additionalClasses>
91-
<class name="admin__field-x-small">true</class>
92-
</additionalClasses>
93-
<addAfter>px</addAfter>
94-
<dataType>text</dataType>
95-
<dataScope>min_height</dataScope>
96-
<validation>
97-
<rule name="validate-number" xsi:type="boolean">true</rule>
98-
</validation>
99-
</settings>
100-
</field>
10187
</fieldset>
10288
<fieldset name="background" sortOrder="30">
10389
<settings>
@@ -258,6 +244,46 @@
258244
</formElements>
259245
</field>
260246
</fieldset>
247+
<fieldset name="layout" sortOrder="30">
248+
<settings>
249+
<label translate="true">Layout</label>
250+
<collapsible>true</collapsible>
251+
<opened>true</opened>
252+
</settings>
253+
<field name="min_height" sortOrder="10" formElement="input">
254+
<settings>
255+
<label translate="true">Minimum Height</label>
256+
<addAfter translate="true">px</addAfter>
257+
<additionalClasses>
258+
<class name="admin__field-small">true</class>
259+
</additionalClasses>
260+
<validation>
261+
<rule name="validate-number" xsi:type="boolean">true</rule>
262+
<rule name="greater-than-equals-to" xsi:type="number">0</rule>
263+
</validation>
264+
</settings>
265+
</field>
266+
<field name="justify_content" sortOrder="20" formElement="select">
267+
<argument name="data" xsi:type="array">
268+
<item name="config" xsi:type="array">
269+
<item name="default" xsi:type="string">flex-start</item>
270+
</item>
271+
</argument>
272+
<settings>
273+
<dataType>text</dataType>
274+
<label translate="true">Vertical Alignment</label>
275+
<notice translate="true">Vertical alignment controls how the child blocks of this container will be positioned. Set minimum height in order to use vertical alignment.</notice>
276+
<elementTmpl>Magento_PageBuilder/form/element/visual-select</elementTmpl>
277+
</settings>
278+
<formElements>
279+
<select>
280+
<settings>
281+
<options class="Magento\PageBuilder\Model\Source\VerticalAlignment"/>
282+
</settings>
283+
</select>
284+
</formElements>
285+
</field>
286+
</fieldset>
261287
<fieldset name="advanced">
262288
<field name="border" sortOrder="20" formElement="select">
263289
<argument name="data" xsi:type="array">

0 commit comments

Comments
 (0)