From 86b8e4d24fc8217cdcad62ce9571479233af3bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E9=98=94?= Date: Thu, 15 Oct 2026 00:58:27 +0800 Subject: [PATCH] fix: widen the endpoint list editor (0.1.1) Co-Authored-By: Claude Opus 5.5 (1M context) --- CHANGELOG.md | 4 ++++ lib/client.js | 3 ++- package.json | 2 +- src/client-style.js | 1 + src/client.jsx | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e768778..3280016 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.1.1 + +- Fixed the endpoint list editor in Settings → Geek2API → Endpoints being only about 20 characters wide: it now spans the card, grows with the list, and resizes vertically. + ## 0.1.0 First release. Derived from [dsh-packycode-api](https://github.com/BaronCyrus/dsh-packycode-api) 1.1.7 (MIT) and rebuilt for the Geek2API gateway (sub2api). diff --git a/lib/client.js b/lib/client.js index bf61199..b98cc16 100644 --- a/lib/client.js +++ b/lib/client.js @@ -381,6 +381,7 @@ window.__ModuleLoader__.load({ .pkc-input:focus{border-color:var(--dsw-alias-state-business-primary)} .pkc-input::placeholder{color:var(--dsw-alias-label-caption)} .pkc-input:disabled{opacity:.5} +.pkc-textarea{display:block;width:100%;height:auto;min-height:96px;padding:8px 10px;line-height:1.6;resize:vertical;white-space:pre;overflow-x:auto} .pkc-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px} .pkc-chip{flex:none;padding:0 8px;border-radius:999px;font-size:11px;font-weight:500;line-height:18px;white-space:nowrap} @@ -1141,7 +1142,7 @@ window.__ModuleLoader__.load({ children: t("hostsEditHint") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", { - className: "pkc-input pkc-mono", + className: "pkc-input pkc-textarea pkc-mono", rows: Math.max(4, hosts.length + 1), disabled: status?.writable !== true || busy, value: draft ?? "", diff --git a/package.json b/package.json index 34a4946..64cd811 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsh-geek2api", - "version": "0.1.0", + "version": "0.1.1", "packageManager": "pnpm@10.32.1", "description": "Use Geek2API API keys in DeepSeek Harness: a built-in multi-protocol model route with key rotation, multi-endpoint failover, and balance display", "type": "module", diff --git a/src/client-style.js b/src/client-style.js index f79a08f..699eeff 100644 --- a/src/client-style.js +++ b/src/client-style.js @@ -35,6 +35,7 @@ export const STYLE = ` .pkc-input:focus{border-color:var(--dsw-alias-state-business-primary)} .pkc-input::placeholder{color:var(--dsw-alias-label-caption)} .pkc-input:disabled{opacity:.5} +.pkc-textarea{display:block;width:100%;height:auto;min-height:96px;padding:8px 10px;line-height:1.6;resize:vertical;white-space:pre;overflow-x:auto} .pkc-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px} .pkc-chip{flex:none;padding:0 8px;border-radius:999px;font-size:11px;font-weight:500;line-height:18px;white-space:nowrap} diff --git a/src/client.jsx b/src/client.jsx index 36b27e1..052d58a 100644 --- a/src/client.jsx +++ b/src/client.jsx @@ -484,7 +484,7 @@ function HostsCard({ call, t }) { {t('hostsEdit')}

{t('hostsEditHint')}