Skip to content

Commit 4d6fb92

Browse files
os-zhuangclaude
andauthored
fix(access): Studio permission matrix — stop clipping the Bulk column at narrow widths (#2600 B3) (#2652)
At ~800px the matrix table (`w-full`, no min-width) squished the CRUD grid and pushed the rightmost Bulk column (读/增改删/全选/清空) off the right edge with no scroll affordance — its enclosing container is `overflow-auto`, but the table never grew past the viewport so there was nothing to scroll to. Give the table a `min-w-[960px]` (object 288 + 9×56 CRUD + 176 bulk) so it keeps its natural column widths and the container scrolls horizontally instead, surfacing a real scrollbar and making the Bulk column reachable. Wide-viewport layout is unchanged (min-width < available width). Verified live at 820px: the table is 960px in a 612px scroll container (canScrollX), and scrolling right brings the full Bulk column into view. The header now truncates gracefully rather than overlapping (B1 already collapsed the identity strip), so no PageShell change is needed. Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d121cb3 commit 4d6fb92

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,10 @@ function PermissionTable({
950950
onOpenOwd,
951951
}: PermissionTableProps) {
952952
return (
953-
<table className="w-full text-sm">
953+
// objectui#2600 B3 — the fixed columns (object + 9 CRUD + bulk) need ~960px;
954+
// a min-width makes the enclosing overflow-auto container scroll instead of
955+
// squishing the CRUD grid and clipping the Bulk column off the right edge.
956+
<table className="w-full min-w-[960px] text-sm">
954957
<thead className="sticky top-0 bg-background border-b z-10">
955958
<tr>
956959
<th className="text-left px-4 py-2 font-medium w-72">{t('perm.col.object')}</th>

0 commit comments

Comments
 (0)