Skip to content

fix(desktop): 调整设备 ID 展开排版#281

Open
Xavier-Trump wants to merge 1 commit into
dev/trumpfrom
fix/desktop-account-device-inline-expand
Open

fix(desktop): 调整设备 ID 展开排版#281
Xavier-Trump wants to merge 1 commit into
dev/trumpfrom
fix/desktop-account-device-inline-expand

Conversation

@Xavier-Trump
Copy link
Copy Markdown
Collaborator

Summary

  • 调整 Settings -> Account 的桌面设备 ID 展开交互:加粗主值保留短 ID,展开后在原第二行显示完整 ID 代码块。
  • 移除展开后额外追加的第三行展示,避免卡片变高过多。
  • 保留 SummaryCard 默认 below 展开模式,只给桌面设备卡片启用 detail inline 模式。

Verification

  • cd app/desktop && corepack.cmd pnpm exec vitest run src/components/settings/primitives/SummaryCard.test.tsx --reporter=dot
  • cd app/desktop && corepack.cmd pnpm exec eslint src/components/settings/primitives/SummaryCard.tsx src/components/settings/primitives/SummaryCard.test.tsx src/components/settings/sections/AccountSection.tsx
  • cd app/desktop && corepack.cmd pnpm typecheck
  • Playwright UI probe on http://127.0.0.1:5173/: full ID visible, short ID appears only once, no [class*=summaryExpandedDetail] row, no horizontal overflow, no console warnings/errors.

Notes

  • Home left sidebar source was checked separately with git blame; current shell/sidebar lines are authored by Delicious233 and already exist on origin/dev/delicious233.

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