@shikijs/vitepress-twoslash 1.6.2 → 1.6.3

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/package.json +3 -3
  2. package/style.css +9 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/vitepress-twoslash",
3
3
  "type": "module",
4
- "version": "1.6.2",
4
+ "version": "1.6.3",
5
5
  "description": "Enable Twoslash support in VitePress",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -55,8 +55,8 @@
55
55
  "twoslash": "^0.2.6",
56
56
  "twoslash-vue": "^0.2.6",
57
57
  "vue": "^3.4.27",
58
- "@shikijs/twoslash": "1.6.2",
59
- "shiki": "1.6.2"
58
+ "shiki": "1.6.3",
59
+ "@shikijs/twoslash": "1.6.3"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "unbuild",
package/style.css CHANGED
@@ -75,7 +75,8 @@
75
75
 
76
76
  .twoslash .twoslash-hover:hover .twoslash-popup-container,
77
77
  .twoslash .twoslash-error-hover:hover .twoslash-popup-container,
78
- .twoslash .twoslash-query-presisted .twoslash-popup-container {
78
+ .twoslash .twoslash-query-presisted .twoslash-popup-container,
79
+ .twoslash .twoslash-query-line .twoslash-popup-container {
79
80
  opacity: 1;
80
81
  pointer-events: auto;
81
82
  }
@@ -137,6 +138,13 @@
137
138
  font-family: var(--twoslash-code-font);
138
139
  }
139
140
 
141
+ /* ===== Query Line ===== */
142
+ .twoslash .twoslash-query-line .twoslash-popup-container {
143
+ position: relative;
144
+ margin-bottom: 1.4em;
145
+ transform: translateY(0.6em);
146
+ }
147
+
140
148
  /* ===== Error Line ===== */
141
149
  .twoslash .twoslash-error-line {
142
150
  position: relative;