← All changes
|
assets/js/admin-modal/grid/section/SectionLayout.js
+15
-0
3.4.0
→
3.9.0
View file →
| @@ -104,8 +104,12 @@ | ||
| 104 | 104 | }, |
| 105 | 105 | { |
| 106 | 106 | value: 'fitRows', |
| 107 | 107 | label: __wpupg( 'Items in rows' ), |
| 108 | + }, | |
| 109 | + { | |
| 110 | + value: 'fitRowsHeight', | |
| 111 | + label: __wpupg( 'Items in rows (force same height)' ), | |
| 108 | 112 | } |
| 109 | 113 | ]} |
| 110 | 114 | /> |
| 111 | 115 | { |
| @@ -124,8 +128,19 @@ | ||
| 124 | 128 | label={ __wpupg( 'Center Grid' ) } |
| 125 | 129 | help={ __wpupg( 'This option will only work with Masonry layout style and the same layout for tablet and mobile.' ) } |
| 126 | 130 | /> |
| 127 | 131 | } |
| 132 | + <Field | |
| 133 | + value={ props.grid.rtl_mode } | |
| 134 | + onChange={ ( value ) => { | |
| 135 | + props.onGridChange({ | |
| 136 | + rtl_mode: value, | |
| 137 | + }); | |
| 138 | + }} | |
| 139 | + type="checkbox" | |
| 140 | + label={ __wpupg( 'RTL Mode' ) } | |
| 141 | + help={ __wpupg( 'When enabled, the grid will position items from Right To Left.' ) } | |
| 142 | + /> | |
| 128 | 143 | { sizingFields( props, 'desktop' ) } |
| 129 | 144 | </Fragment> |
| 130 | 145 | ), |
| 131 | 146 | }, |