@tnotesjs/core 0.1.20 → 0.1.21

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": "@tnotesjs/core",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "TNotes 知识库核心框架 —— 基于 VitePress 的笔记管理系统",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",
@@ -76,8 +76,8 @@ div[class*='language-']:hover .tn-code-actions,
76
76
 
77
77
  .tn-code-action-copy::after {
78
78
  position: absolute;
79
- top: calc(100% + 6px);
80
- right: 0;
79
+ top: 50%;
80
+ right: calc(100% + 6px);
81
81
  padding: 4px 7px;
82
82
  color: var(--vp-c-text-1);
83
83
  background: var(--vp-c-bg-elv);
@@ -89,7 +89,7 @@ div[class*='language-']:hover .tn-code-actions,
89
89
  line-height: 18px;
90
90
  opacity: 0;
91
91
  pointer-events: none;
92
- transform: translateY(-2px);
92
+ transform: translateY(-50%) translateX(2px);
93
93
  transition:
94
94
  opacity 0.16s ease,
95
95
  transform 0.16s ease;
@@ -99,7 +99,7 @@ div[class*='language-']:hover .tn-code-actions,
99
99
  .tn-code-action-copy[data-copy-state='copied']::after,
100
100
  .tn-code-action-copy[data-copy-state='failed']::after {
101
101
  opacity: 1;
102
- transform: translateY(0);
102
+ transform: translateY(-50%) translateX(0);
103
103
  }
104
104
 
105
105
  /* .dark .tn-code-action-copy img {
@@ -57,8 +57,8 @@ ul > li.task-list-item > ul {
57
57
  .vp-doc div[class*=language-] {
58
58
  // 默认值:
59
59
  // margin: 16px 24px;
60
- // 移除外层 margin:
61
- margin: 0px !important;
60
+ // 移除左右 margin:
61
+ margin: 16px 0 !important;
62
62
  }
63
63
 
64
64
  /* #endregion */