diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..04a6663 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,14 @@ +# AGENTS.md — 工作区工作约定 + +本工作区(`atlas-seller-kit-frontend` worktree,`zcode/frontend` 分支)的 AI 会话必须遵守以下规则,优先级高于会话内的自行判断。 + +## 1. 只改前端 + +- 只修改 `apps/web/` 及前端相关文档(即协作约定中「前端体验」领域,见 `docs/project/development-collaboration-contract.md` §2)。 +- `apps/api/`、`apps/worker/`、`packages/database/`、`packages/contracts/` 等服务端领域的代码一律不改;发现问题时在回复中说明,由维护者/后端处理。 + +## 2. 不要启动服务端和 Worker + +- API(NestJS)和 Worker 由维护者自行在其他地方启动,AI 不需要也不应该启动、重启或杀死它们。 +- 开发/验证时若检测到 API 或 Worker 未运行,直接在回复中说明即可,不要尝试代为启动。 +- 前端 vite dev server 属于前端领域,可为验证目的临时启动,用完后应停掉,并避免占用维护者已在使用的端口(如 5173/8200)。 diff --git a/apps/web/src/pages/products/ProductEditPage.css b/apps/web/src/pages/products/ProductEditPage.css index 6694cf5..c81fab6 100644 --- a/apps/web/src/pages/products/ProductEditPage.css +++ b/apps/web/src/pages/products/ProductEditPage.css @@ -139,9 +139,12 @@ border-top: 1px solid #f0eef4; } .package-fields > .ant-form-item:first-child { - width: 150px; + width: max-content; max-width: 100%; } +.package-fields > .ant-form-item:first-child .ant-input { + width: 150px; +} .package-dimensions { margin-bottom: 0; } @@ -265,6 +268,22 @@ .editor-standard-select.ant-select-multiple .ant-select-input { line-height: 32px !important; } +/* 产品类目 Cascader:控件高度与字号对齐页面文本框(40px / 16px) */ +.editor-standard-cascader.ant-select { + --ant-select-height: 40px; + --ant-select-font-size: 16px; + --ant-select-line-height: 24px; + --ant-select-font-height: 24px; +} +.editor-standard-cascader .ant-select-input { + font-size: 16px; +} +.editor-standard-cascader .ant-select-placeholder { + font-size: 16px; +} +.product-editor .ant-cascader-dropdown .ant-cascader-menu-item { + font-size: 16px; +} .dynamic-attributes { margin-top: 24px; padding-top: 22px; @@ -672,6 +691,9 @@ .other-section .editor-section-heading { margin-bottom: 8px; } +.supply-open-button { + height: 40px; +} .editor-footer { position: sticky; bottom: 0; diff --git a/apps/web/src/pages/products/ProductEditPage.tsx b/apps/web/src/pages/products/ProductEditPage.tsx index 58aba22..52e33b9 100644 --- a/apps/web/src/pages/products/ProductEditPage.tsx +++ b/apps/web/src/pages/products/ProductEditPage.tsx @@ -1790,6 +1790,7 @@ const ProductEditPage = () => {