Files
fquiz/web
chengkai3 c4b2794119 fix:[FL-66][杆塔模型管理页面:表格滚动高度计算逻辑不一致]
对齐杆塔模型管理页面的表格滚动高度计算逻辑,使其与用户管理页面保持一致。

主要改动:
1. 重命名常量:TOWER_MODEL_VIEWPORT_BOTTOM_GAP → TOWER_MODEL_VIEWPORT_GAP
2. 新增常量:TOWER_MODEL_FALLBACK_RESERVE (220)
3. 移除常量:TOWER_MODEL_MAX_GROW_STEP(不再需要)
4. 重构 updateTableScrollY 函数,采用用户管理页面的精确计算逻辑:
   - 基于 anchor 元素的 top 位置计算
   - 考虑 table wrapper 和 table body 的高度差
   - 使用 FALLBACK_RESERVE 和 VIEWPORT_GAP 进行精确计算
5. 将 useLayoutEffect 改为 useEffect,并使用 requestAnimationFrame
6. 移除对 paginationRef 的依赖,计算逻辑不再依赖分页元素
7. 清理未使用的 useLayoutEffect import

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-06-19 16:45:19 +08:00
..
2026-04-26 00:14:25 +08:00
2026-04-26 00:14:25 +08:00
2026-04-24 15:50:52 +08:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.