feat(gpu-service): add sliceable tag and horizontal scroll to instance types table

This commit is contained in:
jialin
2026-07-22 15:52:17 +08:00
parent 35d5681008
commit 1655549f31
3 changed files with 35 additions and 7 deletions
+4
View File
@@ -98,6 +98,10 @@ Compose layout with Ant components, not hand-written `display: flex`.
Drive spacing with the theme scale (`Flex`/`Space` `gap`, or `var(--ant-*)` spacing tokens), not scattered `px` literals.
## Tables
- **Horizontally scrollable table**: set `scroll={{ x: 'max-content' }}` **and** add `className="scroll-table"` on the `Table`. The class styles the horizontal scroll to match the design; without it the scroll works but looks off.
# Naming conventions
A page module lives under `src/pages/{module}` with this sub-structure: `components/`, `config/`, `forms/`, `hooks/`, `services/`, `index.tsx`. File naming: