fix(app-shell): 权限集编辑页系统能力胶囊墙加自身 max-height,对象权限矩阵不再被压到 0 高不可达 (#3332) - #3346
Merged
xuyushun441-sys merged 1 commit intoAug 4, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…ject matrix stays reachable (#3332) The system-capabilities section in PermissionMatrixEditPage rendered the CapabilityMultiSelectField chip wall unbounded. It is a non-shrinking sibling of the flex-1 object-permission matrix inside an overflow-hidden column, so a large capability registry (44+ navigation capabilities, 20+ chip rows) squeezed the matrix scroll container to ~9px while the page itself had no scrollbar — the object CRUD grid became unreachable. Wrap the picker in a max-h-[30vh] overscroll-contained scroll area: the capability area keeps at most a viewport share and scrolls internally, and the matrix keeps the remaining height. Per objectui#2600 B1 the picker itself stays inline (no extra click) when grants exist. Covers both entry points (Setup metadata route via builtinComponents and StudioDesignSurface), which render the same editor. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
xuyushun441-sys
marked this pull request as ready for review
August 4, 2026 13:43
xuyushun441-sys
deleted the
claude/issue-3332-permset-object-list-height
branch
August 4, 2026 13:43
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.
Fixes #3332
问题
Setup 权限集「权限配置」页(PermissionMatrixEditPage,Setup 元数据路由与 Studio 设计面共用)中,「系统能力」区的 CapabilityMultiSelectField 胶囊墙无界渲染。它在 overflow-hidden 的弹性列里是 flex-1 对象矩阵的不收缩兄弟节点:能力注册表一多(项目实测 44+ 个导航能力 → 20+ 行胶囊),矩阵滚动容器被压到 scrollHeight=7134 / clientHeight=9,整页又无滚动条,对象级 C/R/U/D 配置在 UI 上彻底不可达。
修复
采用 issue 给出的「能力区给自身 max-height」方案:胶囊墙包进
max-h-[30vh] overflow-y-auto overscroll-contain容器,能力区最多占 30% 视口、内部自滚,矩阵拿回剩余全部高度。与 objectui#2600 B1 既有约定兼容——有授权时选择器仍免点击直出(该行为已有测试钉住,本次未动)。测试
overflow-y-auto+max-h-的滚动容器内;pnpm vitest run packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor:7 个测试文件 25 个用例全绿;pnpm type-check(app-shell)通过。🤖 Generated with Claude Code