fix: v2.1.1 列表操作列溢出与分页器对齐

- /mailboxes 地址列保持自适应(不设宽度吸收剩余空间),操作列 150→210 修复按钮被卡片右缘裁切
- /domains 操作列 200→260、/accounts 100→110,带图标按钮一行放下
- 分页器(总条数/页码/条数下拉)整体居中紧凑,条数下拉不再贴最右侧
This commit is contained in:
bigcode
2026-09-30 14:50:07 +08:00
parent 7370cce784
commit c10495d7f8
6 changed files with 23 additions and 7 deletions
+4 -3
View File
@@ -51,8 +51,9 @@ const recipient = "hello@example.test";
const sender = "e2e@example.org";
// Phase 1: authorize
const authorizeBody = JSON.stringify({ recipient, sender, message_id: "md-e2e-1@example.org" });
const auth = await signWorkerRequest(secret, worker_id, "POST", `${CONSOLE}/internal/email/authorize`,
JSON.stringify({ recipient, sender, message_id: "md-e2e-1@example.org" }));
new TextEncoder().encode(authorizeBody));
const authResp = await fetch(`${CONSOLE}/internal/email/authorize`, {
method: "POST",
headers: { ...auth, "Content-Type": "application/json" },
@@ -63,7 +64,7 @@ console.log("authorize:", authResp.status, JSON.stringify(decision));
if (decision.decision !== "accept") throw new Error("not accepted");
// Phase 2: ingest(raw MIME)
const ingestAuth = await signWorkerRequest(secret, worker_id, "POST", `${CONSOLE}/internal/email/ingest`, mime);
const ingestAuth = await signWorkerRequest(secret, worker_id, "POST", `${CONSOLE}/internal/email/ingest`, new TextEncoder().encode(mime));
const ingestResp = await fetch(`${CONSOLE}/internal/email/ingest`, {
method: "POST",
headers: {
@@ -72,7 +73,7 @@ const ingestResp = await fetch(`${CONSOLE}/internal/email/ingest`, {
"X-WmailHub-Recipient": recipient,
"X-WmailHub-Sender": sender,
},
body: mime,
body: mime, // string 直发,签名时才转字节
});
const ingestData = (await ingestResp.json()) as { ok: boolean; id: string; webhook: string | null };
console.log("ingest:", ingestResp.status, JSON.stringify(ingestData));