dsh-happy-reader 0.2.1 → 0.2.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.
- package/README.md +3 -3
- package/lib/client.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,14 +97,14 @@
|
|
|
97
97
|
|
|
98
98
|
**官方插件页**(设置 → 插件)的安装框里输入:
|
|
99
99
|
|
|
100
|
-
-
|
|
101
|
-
|
|
100
|
+
- npm 包名(推荐,最省事):`dsh-happy-reader`
|
|
101
|
+
- 或 git 地址:`git+https://github.com/Richardwongyk/dsh-happy-reader.git`
|
|
102
102
|
- 或本地目录(已下载到本机时):`file:C:/path/to/dsh-happy-reader`
|
|
103
103
|
|
|
104
104
|
**或命令行**:
|
|
105
105
|
|
|
106
106
|
```sh
|
|
107
|
-
dsh plugin --profile <profile> add
|
|
107
|
+
dsh plugin --profile <profile> add dsh-happy-reader
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
## 卸载
|
package/lib/client.js
CHANGED
|
@@ -29,7 +29,7 @@ window.__ModuleLoader__.load({
|
|
|
29
29
|
var exports = module.exports
|
|
30
30
|
|
|
31
31
|
// ── 常量 ────────────────────────────────────────────────────────────
|
|
32
|
-
const VERSION = '0.2.
|
|
32
|
+
const VERSION = '0.2.2'
|
|
33
33
|
const STATE_KEY = 'dsh.reader-boost.v1'
|
|
34
34
|
const FAB_ID = 'dsrb-fab'
|
|
35
35
|
const PANEL_ID = 'dsrb-panel'
|
|
@@ -72,12 +72,13 @@ window.__ModuleLoader__.load({
|
|
|
72
72
|
justify-content:center;cursor:grab;user-select:none;-webkit-user-select:none;
|
|
73
73
|
box-shadow:0 4px 14px rgba(0,0,0,.28);backdrop-filter:blur(6px)}
|
|
74
74
|
.dsrb-fab:active{cursor:grabbing}
|
|
75
|
-
.dsrb-panel{position:fixed;z-index:9999;width:${PANEL_WIDTH}px;padding:0
|
|
75
|
+
.dsrb-panel{position:fixed;z-index:9999;width:${PANEL_WIDTH}px;padding:0;border-radius:12px;
|
|
76
76
|
max-height:calc(100vh - 18px);display:flex;flex-direction:column;overflow:hidden;
|
|
77
77
|
border:1px solid rgba(128,128,128,.3);background:rgba(28,28,30,.96);color:#ececec;
|
|
78
78
|
font:13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;
|
|
79
79
|
box-shadow:0 8px 28px rgba(0,0,0,.38);backdrop-filter:blur(8px)}
|
|
80
|
-
|
|
80
|
+
/* 横向内边距放在滚动区:面板零内边距,滚动条才能贴住面板右缘 */
|
|
81
|
+
.dsrb-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 14px}
|
|
81
82
|
.dsrb-body::-webkit-scrollbar{width:8px}
|
|
82
83
|
.dsrb-body::-webkit-scrollbar-thumb{background:rgba(128,128,128,0);border-radius:4px;transition:background .15s}
|
|
83
84
|
.dsrb-body:hover::-webkit-scrollbar-thumb{background:rgba(128,128,128,.45)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-happy-reader",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Happy Reader(阅读增强):隐藏输入框 / 上边栏、全屏切换、字号 10–40px、行距/字距微调、面板可拖动可拉高、复制为 Markdown(公式→LaTeX)、内容宽度扩展、中英文分别选正文字体 + 代码字体(仅列本机已装)—— 与官方设置协同,不冲突",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|