@innertia-solutions/nuxt-theme-spark 0.1.46 → 0.1.47

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.
@@ -538,7 +538,7 @@ defineExpose({
538
538
  </thead>
539
539
 
540
540
  <tbody ref="tableBodyRef" class="divide-y divide-gray-200 dark:divide-slate-700">
541
- <!-- Loading skeleton -->
541
+ <!-- Loading skeleton rows -->
542
542
  <tr
543
543
  v-if="loading"
544
544
  v-for="(_, i) in skeletonRows"
@@ -556,6 +556,20 @@ defineExpose({
556
556
  </td>
557
557
  </tr>
558
558
 
559
+ <!-- Loading filler rows: pad to pageSize so table height doesn't change -->
560
+ <tr
561
+ v-if="loading && skeletonRows.length < pagination.pageSize"
562
+ v-for="i in (pagination.pageSize - skeletonRows.length)"
563
+ :key="'lf-' + i"
564
+ class="divide-x divide-gray-200 dark:divide-slate-700 bg-white dark:bg-slate-800"
565
+ >
566
+ <td
567
+ v-for="header in (table.getHeaderGroups()[0]?.headers ?? [])"
568
+ :key="'lfc-' + header.id"
569
+ :style="{ height: lastRowHeight + 'px' }"
570
+ />
571
+ </tr>
572
+
559
573
  <!-- Empty skeleton -->
560
574
  <tr
561
575
  v-if="!loading && tableData.length === 0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",