Repository navigation
feat(ui): 卡片页键值区 / 新增格收成组件,主从页详情标题统一(#210) - #215
Merged
Merged
Conversation
- 新增 pages/_shared/resource-card.tsx:CardFields · CardField · AddCard - 五张卡片页(模型密钥 / MCP 凭据 / 短信配置 / 群机器人 / 存储)的 22 行键值换成 CardField: 标签列是 grid 的 max-content,按本卡最长的标签自适应,不再写死 w-10 / w-14 / w-16 三种 - 五份手抄的「新增」格换成 AddCard,最小高度统一(原来 min-h-44 / 48 / 52 三种) - 主从页详情标题:角色 / 数据权限 text-lg → text-base,字典 text-sm 常规 → text-base font-semibold 的 h2 (和参数配置一致) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CardField 的 dt 加 max-w-24:英文长标签(Business template)不再把整列撑宽、把 truncate 的值挤得更短 - 值是纯文本时 dd 自动带 title,截断的地址 / 凭据悬停能看全 - MCP 页 AddCard 不再重复写默认图标(icon 只在空状态给 IconKey) - 修正群机器人 / 短信配置 / 存储里 CardField 子元素多出来的缩进 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#210 调研结论里的 P1-9(卡片页)和 P1-10(主从页详情标题),对应拆分计划里的 ⑤。
改了什么
新增
packages/platform/src/pages/_shared/resource-card.tsx:CardFields/CardFieldw-10/w-14/w-16三种,「标签 + 值」在卡片之间对不齐,换成英文标签还会把值挤下去。现在是 grid 的max-content列,按本卡最长的标签自适应AddCard主从页详情标题统一成
<h2 className="text-base font-semibold">:角色 / 数据权限原来 18px,字典原来 14px 常规,参数配置是 16px 粗体 —— 跟参数配置走。卡片的外框和标题区五页本来就是同一套,没抽
ResourceCard(抽了也只是把同样的 div 换个名字)。验证
pnpm typecheck --force·pnpm lint·i18n:check·arch:check·ctx:check全过notify-bot那条红在接口建公告(本地fba_test少迁移:sys_notice.pinned不存在),和本 PR 无关,交给 CI不在这个 PR 里
Refs #210
🤖 Generated with Claude Code