@innovastudio/contentbuilder 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.4.1",
4
+ "version": "1.4.2",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -4527,13 +4527,36 @@ class Util {
4527
4527
  // return;
4528
4528
  // }
4529
4529
 
4530
+ let smHidden = false;
4531
+ let mdHidden = false;
4530
4532
  Array.from(row.children).map(item => {
4531
4533
  if (item.classList.contains('is-row-tool')) return;
4532
4534
  if (item.classList.contains('is-col-tool')) return;
4533
4535
  if (item.classList.contains('is-rowadd-tool')) return;
4534
4536
  item.style.width = '';
4535
4537
  item.style.flex = '';
4538
+
4539
+ if (item.classList.contains('sm-hidden')) {
4540
+ smHidden = true;
4541
+ }
4542
+
4543
+ if (item.classList.contains('md-hidden')) {
4544
+ mdHidden = true;
4545
+ }
4536
4546
  });
4547
+
4548
+ if (smHidden) {
4549
+ row.classList.add('sm-autofit');
4550
+ } else {
4551
+ row.classList.remove('sm-autofit');
4552
+ }
4553
+
4554
+ if (mdHidden) {
4555
+ row.classList.add('md-autofit');
4556
+ } else {
4557
+ row.classList.remove('md-autofit');
4558
+ }
4559
+
4537
4560
  let num = 3; //is-row-tool, is-col-tool & is-rowadd-tool
4538
4561
 
4539
4562
  if (row.querySelector('.is-row-overlay')) {
@@ -60145,6 +60168,7 @@ class ColumnTool {
60145
60168
  cell.classList.remove('xs-hidden');
60146
60169
  } else if (target === 'sm') {
60147
60170
  cell.classList.remove('sm-hidden');
60171
+ cell.parentNode.classList.remove('sm-autofit');
60148
60172
  } else if (target === 'md') {
60149
60173
  cell.classList.remove('md-hidden');
60150
60174
  cell.parentNode.classList.remove('md-autofit');
@@ -60166,6 +60190,7 @@ class ColumnTool {
60166
60190
  cell.classList.add('xs-hidden');
60167
60191
  } else if (target === 'sm') {
60168
60192
  cell.classList.add('sm-hidden');
60193
+ cell.parentNode.classList.add('sm-autofit');
60169
60194
  } else if (target === 'md') {
60170
60195
  cell.classList.add('md-hidden');
60171
60196
  cell.parentNode.classList.add('md-autofit');