Skip to content

Conversation

@Cheerego7
Copy link
Collaborator

@Cheerego7 Cheerego7 commented Sep 18, 2025

Summary by CodeRabbit

  • 新功能

    • Link 按钮组件现支持传入字符串图标或自定义节点图标,渲染更灵活,兼容更多图标来源。
  • 样式

    • 更新 Link 按钮悬停态:不再改变背景与文字颜色,改为突出边框,并高亮图标与文字;按下态保持不变。
    • 社区页面 logo 尺寸由 16px 提升至 18px,视觉更清晰。

@coderabbitai
Copy link

coderabbitai bot commented Sep 18, 2025

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

  • 更新 LinkBtn.module.scss:移除容器 hover 时的背景与文字色变更,改为只变更边框颜色为 #7d7fe9;hover 下 .linkIcon 与 .linkText 颜色改为 #7d7fe9;:active 保持不变。
  • 更新 LinkBtn.tsx:渲染 icon 时新增类型分支;当 icon 为字符串时渲染带组合类名的 ,当为 ReactNode 时渲染包裹于 的节点;其余结构与行为未改动。
  • 更新 community 样式:.logo 宽高由 16px 调整为 18px。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2d1264b and 3c91713.

📒 Files selected for processing (3)
  • src/components/Button/LinkBtn.module.scss (1 hunks)
  • src/components/Button/LinkBtn.tsx (1 hunks)
  • src/pages/community/styles.module.scss (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Cheerego7 Cheerego7 merged commit a83c0a1 into main Sep 18, 2025
2 of 3 checks passed
@Cheerego7 Cheerego7 deleted the fix-icon-not-renderer branch September 18, 2025 08:07
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.

2 participants