dsh-jethub-mobile 0.1.6 → 0.1.8

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.
@@ -2973,13 +2973,27 @@ col.dim-jh-ledgerColAccount { width: 12.68%; }
2973
2973
  }
2974
2974
  .dim-jh-rail[data-expanded="false"] .dim-jh-railActions { display: none; }
2975
2975
  .dim-jh-railActions > .dim-jh-btn { flex: 1 1 0; min-width: 0; }
2976
- /* 渠道列表恢复纵向滚动;收起态整段隐藏(只留展开把手 + 底部图标)。 */
2976
+ /* 渠道列表恢复纵向滚动。收起态**不隐藏**这一列 —— 而是把每个渠道按钮压成
2977
+ 只有图标的小方块(用户要的「渠道小图标」),点图标直接切到该渠道。 */
2977
2978
  .dim-jh-railScroll {
2978
2979
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
2979
2980
  gap: 6px; flex: 1 1 auto; min-height: 0; min-width: 0;
2980
2981
  padding: 0; overflow-y: auto; overflow-x: hidden;
2981
2982
  }
2982
- .dim-jh-rail[data-expanded="false"] .dim-jh-railScroll { display: none; }
2983
+ /* 收起态:搜索框、分组标题、名字、括号、账号/积分统计、副标题全部隐藏,
2984
+ 只留渠道图标(provider 按钮改成单列、图标居中、正方形小按钮)。 */
2985
+ .dim-jh-rail[data-expanded="false"] .dim-jh-railSearch,
2986
+ .dim-jh-rail[data-expanded="false"] .dim-jh-railGroup { display: none; }
2987
+ /* 收起态置顶块也展平,让 aggregate 图标和普通渠道图标排在同一列。 */
2988
+ .dim-jh-rail[data-expanded="false"] .dim-jh-railPinned { display: contents; }
2989
+ .dim-jh-rail[data-expanded="false"] .dim-jh-provider {
2990
+ display: flex; align-items: center; justify-content: center;
2991
+ width: 100%; min-height: 32px; padding: 3px;
2992
+ grid-template-columns: none;
2993
+ }
2994
+ .dim-jh-rail[data-expanded="false"] .dim-jh-provider > .dim-jh-providerLabel,
2995
+ .dim-jh-rail[data-expanded="false"] .dim-jh-provider > .dim-jh-providerStats { display: none; }
2996
+ .dim-jh-rail[data-expanded="false"] .dim-jh-providerIcon { width: 22px; height: 22px; flex: none; }
2983
2997
  /* 搜索框:展开态占满一列。 */
2984
2998
  .dim-jh-railSearch {
2985
2999
  position: static; flex: 1 1 auto; width: auto; min-width: 0;
@@ -18227,14 +18241,19 @@ function JetHubPage({ rpcCall }) {
18227
18241
  },
18228
18242
  // 竖屏展开把手:收起时是一条窄竖条,点一下把渠道列表推出、账号区右移。
18229
18243
  // 宽屏隐藏(CSS 控制),不影响桌面布局。
18230
- React9.createElement("button", {
18231
- type: "button",
18232
- className: "dim-jh-railExpand",
18233
- "aria-expanded": railExpanded ? "true" : "false",
18234
- "aria-label": railExpanded ? "收起渠道列表" : "展开渠道列表",
18235
- title: railExpanded ? "收起渠道列表" : "展开渠道列表",
18236
- onClick: () => setRailExpanded((v) => !v)
18237
- }, railExpanded ? "收起" : "展开"),
18244
+ React9.createElement(
18245
+ "button",
18246
+ {
18247
+ type: "button",
18248
+ className: "dim-jh-railExpand",
18249
+ "aria-expanded": railExpanded ? "true" : "false",
18250
+ "aria-label": railExpanded ? "收起渠道列表" : "展开渠道列表",
18251
+ title: railExpanded ? "收起渠道列表" : "展开渠道列表",
18252
+ onClick: () => setRailExpanded((v) => !v)
18253
+ },
18254
+ React9.createElement("span", { "aria-hidden": "true" }, railExpanded ? "◀ " : "▶ "),
18255
+ railExpanded ? "收起" : "展开"
18256
+ ),
18238
18257
  React9.createElement(
18239
18258
  "div",
18240
18259
  { className: "dim-jh-railScroll" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-jethub-mobile",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Jet Hub —— 基于官方 dsh-providers-hub,提供多渠道适配、账号池、余额、续期、签到、网关、模型目录等全部能力,界面保持官方原版。账号数据本体留在 ~/.dsh/.credentials.yaml。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",