@tekkare/auriga 0.1.148 → 0.1.149

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/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.1.148"
7
+ "version": "0.1.149"
8
8
  }
@@ -663,18 +663,20 @@ export default defineComponent({
663
663
  showToggle.value = props.toggleDisplay;
664
664
  }
665
665
  onMounted(() => {
666
- if (props.autoCrop) {
667
- const textCells = document.querySelectorAll(".text_cell");
668
- textCells.forEach((cell) => {
669
- cell.classList.remove("crop_text");
670
- const fullHeight = cell.clientHeight;
671
- cell.classList.add("crop_text");
672
- const originalHeight = cell.clientHeight;
673
- if (fullHeight > originalHeight) {
674
- hasReadMore.value.push(cell.id);
675
- }
676
- });
677
- }
666
+ setTimeout(() => {
667
+ if (props.autoCrop) {
668
+ const textCells = document.querySelectorAll(".text_cell");
669
+ textCells.forEach((cell) => {
670
+ cell.classList.remove("crop_text");
671
+ const fullHeight = cell.clientHeight;
672
+ cell.classList.add("crop_text");
673
+ const originalHeight = cell.clientHeight;
674
+ if (fullHeight > originalHeight) {
675
+ hasReadMore.value.push(cell.id);
676
+ }
677
+ });
678
+ }
679
+ }, 500);
678
680
  });
679
681
  function applyToggleCrop(index, value) {
680
682
  if (toggleCrop.value !== null) {
@@ -685,6 +687,18 @@ export default defineComponent({
685
687
  } else
686
688
  toggleCrop.value = { index, value };
687
689
  }
690
+ if (props.autoCrop) {
691
+ const textCells = document.querySelectorAll(".text_cell");
692
+ textCells.forEach((cell) => {
693
+ cell.classList.remove("crop_text");
694
+ const fullHeight = cell.clientHeight;
695
+ cell.classList.add("crop_text");
696
+ const originalHeight = cell.clientHeight;
697
+ if (fullHeight > originalHeight) {
698
+ hasReadMore.value.push(cell.id);
699
+ }
700
+ });
701
+ }
688
702
  return {
689
703
  sortCol,
690
704
  sortDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.148",
3
+ "version": "0.1.149",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",