@everchron/ec-shards 5.0.34 → 5.0.36

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@everchron/ec-shards",
3
- "version": "5.0.34",
3
+ "version": "5.0.36",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -55,6 +55,10 @@
55
55
  /** Overwrites the default padding. Should only be used when the cell contains e.g. a button which has it's own padding and thus needs to be aligned with the padding of other cells. Only pass padding shorthand values, for example: `4px 0 4px 8px`.*/
56
56
  padding: {
57
57
  type: String
58
+ },
59
+ /* puts extra padding-left on the first non-static column in the index */
60
+ firstNonStaticCell: {
61
+ type: Boolean
58
62
  }
59
63
  },
60
64
 
@@ -87,7 +91,7 @@
87
91
  if (this.padding && this.padding !== '')
88
92
  return { padding: this.padding }
89
93
  else
90
- return { padding: '8px' }
94
+ return this.firstNonStaticCell ? { padding: '8px 8px 8px 16px' } : { padding: '8px' }
91
95
  },
92
96
 
93
97
  computedId(){
@@ -128,7 +128,7 @@
128
128
  else if(this.fixedRight)
129
129
  return { position: 'sticky', right: '0', zIndex: '1' }
130
130
  else if(this.firstNonStaticCell)
131
- return { padding: '8px 8px 8px 16px' }
131
+ return { 'padding-left': '16px' }
132
132
  },
133
133
 
134
134
  paddingStyles(){