grav-svelte 0.0.90 → 0.0.91

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.
@@ -194,6 +194,7 @@
194
194
  (dragEnabled ? 1 : 0) +
195
195
  (expandEnabled ? 1 : 0)}
196
196
  class="sub-row-cell"
197
+ style="--sub-table-offset: {(dragEnabled ? 40 : 0) + (expandEnabled ? 50 : 0)}px"
197
198
  >
198
199
  <SubRowsTable
199
200
  subRows={item[subRowsField]}
@@ -583,6 +583,11 @@
583
583
 
584
584
  .sub-row-cell {
585
585
  padding: 0 !important;
586
+ background: linear-gradient(
587
+ to right,
588
+ var(--grav-crud-color-bg, #ffffff) var(--sub-table-offset, 0),
589
+ rgba(0, 0, 0, 0.02) var(--sub-table-offset, 0)
590
+ );
586
591
  }
587
592
 
588
593
  .sub-table {
@@ -590,6 +595,8 @@
590
595
  border-collapse: collapse;
591
596
  margin: 0;
592
597
  background-color: rgba(0, 0, 0, 0.02);
598
+ /* Align sub-table content with first data column */
599
+ margin-left: var(--sub-table-offset, 0);
593
600
  }
594
601
 
595
602
  .sub-table .sub-row {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grav-svelte",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "A collection of Svelte components",
5
5
  "license": "MIT",
6
6
  "scripts": {