feat(edit): 页面表单高度优化
This commit is contained in:
@@ -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)。
|
||||||
@@ -139,9 +139,12 @@
|
|||||||
border-top: 1px solid #f0eef4;
|
border-top: 1px solid #f0eef4;
|
||||||
}
|
}
|
||||||
.package-fields > .ant-form-item:first-child {
|
.package-fields > .ant-form-item:first-child {
|
||||||
width: 150px;
|
width: max-content;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
.package-fields > .ant-form-item:first-child .ant-input {
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
.package-dimensions {
|
.package-dimensions {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
@@ -265,6 +268,22 @@
|
|||||||
.editor-standard-select.ant-select-multiple .ant-select-input {
|
.editor-standard-select.ant-select-multiple .ant-select-input {
|
||||||
line-height: 32px !important;
|
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 {
|
.dynamic-attributes {
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
padding-top: 22px;
|
padding-top: 22px;
|
||||||
@@ -672,6 +691,9 @@
|
|||||||
.other-section .editor-section-heading {
|
.other-section .editor-section-heading {
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
.supply-open-button {
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
.editor-footer {
|
.editor-footer {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|||||||
@@ -1790,6 +1790,7 @@ const ProductEditPage = () => {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Tooltip title="打开货源链接">
|
<Tooltip title="打开货源链接">
|
||||||
<Button
|
<Button
|
||||||
|
className="supply-open-button"
|
||||||
icon={<ExportOutlined />}
|
icon={<ExportOutlined />}
|
||||||
disabled={!canOpenSupplyUrl}
|
disabled={!canOpenSupplyUrl}
|
||||||
onClick={openSupplyUrl}
|
onClick={openSupplyUrl}
|
||||||
|
|||||||
Reference in New Issue
Block a user