Skip to content

fix(web): 左侧名称超过 10 字省略,列表可放大到 200% - #1175

Open
dofastted wants to merge 1 commit into
mainfrom
fix/web-vm-list-zoom
Open

dofastted wants to merge 1 commit into
mainfrom
fix/web-vm-list-zoom

Conversation

@dofastted

@dofastted dofastted commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

摘要

  • VM 页左侧槽位编号、Gemini 名称和邮箱统一最多显示 10 个字符,超出用省略号。悬停仍显示完整内容。列表和卡片用同一套规则。
  • 列表视图增加放大滑块,100%–200%,每档 10%,选择记在本机。网格的小/中/大卡片尺寸不变。

验证

  • pnpm -C web exec vitest run src/lib/vm-kind.test.ts src/features/vm/vm-list-table.test.tsx(26 通过)
  • pnpm -C web exec tsc -b --pretty false 无错误

Note

Low Risk
UI-only display and zoom preferences; no API, auth, or data handling changes.

Overview
VM list and card identity lines now use a shared clipLabel helper so slot IDs, Gemini names, and bound emails cap at 10 characters (Unicode-aware), with the full value still on title.

List view adds a 100%–200% zoom slider (10% steps) that persists in localStorage and applies CSS zoom on the table; grid card sizes are unchanged.

Tests cover clipping behavior and the shortened email rendering in the table.

Reviewed by Cursor Bugbot for commit 07160e4. Configure here.

槽位列表和卡片左侧的编号、名称、邮箱统一只显示 10 个字符,悬停仍看全文。列表视图增加 100%–200% 放大,并记在本机。
@cursor

cursor Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 577089b5-9d9c-49c5-be6c-8391fc391d45)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant