@jsonup/vue 0.0.1 → 0.0.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.
Files changed (2) hide show
  1. package/dist/style.css +5 -2
  2. package/package.json +4 -4
package/dist/style.css CHANGED
@@ -52,6 +52,8 @@
52
52
  position: relative;
53
53
  padding-left: 0;
54
54
  grid-template-columns: 48px minmax(0, 1fr);
55
+ width: max-content;
56
+ min-width: 100%;
55
57
  }
56
58
  .jsonup-viewer .line {
57
59
  display: grid;
@@ -61,6 +63,7 @@
61
63
  padding: 0 8px;
62
64
  border-radius: 4px;
63
65
  white-space: pre-wrap;
66
+ --jsonup-viewer-line-content-padding: calc(var(--jsonup-viewer-line-depth) * 16px);
64
67
  }
65
68
  .jsonup-viewer .line[data-interactive="true"] {
66
69
  cursor: pointer;
@@ -70,7 +73,7 @@
70
73
  }
71
74
  .jsonup-viewer .line-number {
72
75
  padding-right: 12px;
73
- background-color: #eee;
76
+ background-color: var(--jv-background);
74
77
  position: sticky;
75
78
  left: 0;
76
79
  height: 100%;
@@ -81,7 +84,7 @@
81
84
  .jsonup-viewer .content {
82
85
  display: inline-block;
83
86
  min-width: 0;
84
- padding-left: calc(var(--jsonup-viewer-line-depth) * 16px);
87
+ padding-left: var(--jsonup-viewer-line-content-padding);
85
88
  word-break: break-all;
86
89
  text-wrap-mode: nowrap;
87
90
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsonup/vue",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "Vue 3 adapter and component for rendering the jsonup JSON viewer.",
6
6
  "author": {
7
7
  "name": "Michael Cocova",
@@ -31,9 +31,9 @@
31
31
  "vue": "^3.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@jsonup/core": "0.0.1",
35
- "@jsonup/operation": "0.0.1",
36
- "@jsonup/themes": "0.0.1"
34
+ "@jsonup/operation": "0.0.2",
35
+ "@jsonup/core": "0.0.2",
36
+ "@jsonup/themes": "0.0.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@tsdown/css": "^0.22.0",