Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Defines shared admin table styling, sticky right action columns, and pagination rules via AdminTableShell and AdminTooltipText.
23% 91%+68 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 5 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
src/components/admin/AdminTableShell.tsx 和 src/components/admin/admin-table-styles.ts,不要在单个页面重复写表格外框、表头 token 和 sticky 列样式。--base-border,表头背景统一使用 --base-muted,表头文字统一使用 --base-foreground 与 text-sm/medium/20px line-height token。40px、最小宽度为 85px、左右内边距为 8px、文字左对齐;不要为了模拟设计稿额外添加拖拽列或 checkbox 选择列。53px、最小宽度为 85px、内边距为 8px、文字左对齐、垂直居中,并使用 --base-foreground 与 text-sm/normal/20px line-height token;不要在 td 上强制 flex,避免破坏表格列布局。border-r、text-center 应由共享表格样式覆盖,避免逐页重复清理。16px,避免表格左边缘过挤;整行 hover 背景必须覆盖 sticky 操作列,不要让固定列保持白底。AdminTooltipText 暴露完整文本;多行信息单元格需要分别给各行补 tooltip,避免只处理外层单元格导致具体文本仍不可见。AdminTableShell,标题区域用 header 配置,统计范围说明用 footnote 配置,分页用 pagination 配置;需要 loading 时仍展示分页和说明时传入 showFooterWhenLoading。header;课程总数和统计范围说明合并到同一条 footnote 中,优先使用“课程数:{count}(统计范围说明...)”这类单行文案。h-dvh 搭配 overflow-hidden,垂直滚动交给右侧主内容容器或明确的表格滚动容器,避免页面滚动和内容滚动同时出现导致底部大块空白。getAdminStickyRightHeaderClass,单元格使用 getAdminStickyRightCellClass,不要只把操作列放在最后但随横向滚动移出视口。AdminTableShell 的 pagination 配置统一渲染在表格底部右侧;除非产品明确要求隐藏,否则单页也展示分页器,不要在页面里用 pageCount > 1 或 hideWhenSinglePage 隐藏。AdminPagination 包装层处理最后一个分页按钮的右侧内边距,不要在单个页面里用 margin 偏移。36px 宽高、8px 16px padding 和 8px gap;优先改共享 PaginationLink 的 icon 尺寸,不要在单个 admin 页面覆盖页码按钮。ghost 按钮默认 hover 底色形成块状高亮。ADMIN_TABLE_RESIZE_HANDLE_CLASS 作为交互热区,视觉分隔仍由共享表头与边框样式控制。npm run type-check,无法运行时在最终说明中明确原因。Next to this one in the catalogue, plus more from the same author.