Skip to content

fix: PersonalCard 空值占位与空区块隐藏 - #13

Merged
zhipenglin merged 1 commit into
masterfrom
cursor/fix-personal-card-empty-2
Aug 25, 2026
Merged

zhipenglin merged 1 commit into
masterfrom
cursor/fix-personal-card-empty-2

Conversation

@zhipenglin

Copy link
Copy Markdown
Member

Summary

  • avatar 为空时显示用户图标占位,避免破损图片
  • description / 联系方式 / moreInfo / status 为空时对应容器整块不渲染
  • 横向(minimal)模式:无右侧内容时不显示中间分割线;有右侧内容时左侧保留与分割线的间距
  • 在原有 PersonalCard 示例中补充无头像、无简介、只有姓名、无 status 等场景
  • version: 0.1.10 → 0.1.11

Test plan

  • npm start 打开 PersonalCard 示例
  • 切换 large / vertical / horizontal,核对「无头像(占位)」「无简介」「只有姓名」「无 status」
  • 横向模式「只有姓名」无中间分割线
  • 横向模式「完整信息」左侧文字与分割线有间距

Made with Cursor

头像为空时显示占位图;简介/联系方式/moreInfo/status 为空时不渲染对应区域;补充空值示例并修正横向模式分割线间距。

Co-authored-by: Cursor <cursoragent@cursor.com>
@zhipenglin
zhipenglin merged commit 1f82053 into master Aug 25, 2026
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