Skip to content

fix(UI): avatars problem & button style#1277

Merged
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat-lyjc
Jul 29, 2025
Merged

fix(UI): avatars problem & button style#1277
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat-lyjc

Conversation

@liuyangjuncong20202570

Copy link
Copy Markdown
Contributor

修复assignees头像显示问题
修复增加assigness相关评论按钮错位问题

@vercel

vercel Bot commented Jul 28, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2025 9:00am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes avatar display issues for assignees and corrects button alignment problems in issue-related components. The changes refactor how assignee avatars are displayed by creating a new component for handling multiple avatars with hover cards and improving the styling of comment-related buttons.

  • Refactored assignee avatar display logic into a dedicated MemberHoverAvatarList component
  • Fixed button alignment issues by adjusting margin styles in issue detail pages
  • Cleaned up hover card component by removing unnecessary wrapper elements and hardcoded placeholder text

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
MemberHoverCardNE.tsx Simplified hover card trigger structure and updated placeholder content with dynamic data
MemberHoverAvatarList.tsx New component for displaying multiple assignee avatars with hover functionality
IssuesContent.tsx Replaced individual avatar logic with new avatar list component and improved container styling
IssueDetailPage.tsx Fixed button positioning by adding explicit margin styles

Comment thread moon/apps/web/components/Issues/MemberHoverAvatarList.tsx
<>
<MemberHovercard username={hoverProps.username} side='top' align='end' member={hoverProps.userData}>
<div className={className} style={style}>
<Avatar src={src} />

Copilot AI Jul 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Avatar component should include an alt attribute for accessibility. Consider adding alt text based on the user's username or display name.

Suggested change
<Avatar src={src} />
<Avatar src={src} alt={`Avatar of ${hoverProps.username}`} />

Copilot uses AI. Check for mistakes.
Comment thread moon/apps/web/components/Issues/IssuesContent.tsx
Comment on lines +332 to +334
style={{
marginTop: `16px`
}}

Copilot AI Jul 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using inline styles with hardcoded values when you already have the equivalent Tailwind class 'mt-4' (which is 16px) creates redundancy. Consider removing either the inline style or the Tailwind class.

Suggested change
style={{
marginTop: `16px`
}}

Copilot uses AI. Check for mistakes.
Comment thread moon/apps/web/components/Issues/IssueDetailPage.tsx
@benjamin-747
benjamin-747 added this pull request to the merge queue Jul 29, 2025
Merged via the queue into gitmono-dev:main with commit fd1265a Jul 29, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants