Skip to content

Use PrimeVue Avatar component#3615

Merged
huchenlei merged 3 commits intomainfrom
avatar
Apr 25, 2025
Merged

Use PrimeVue Avatar component#3615
huchenlei merged 3 commits intomainfrom
avatar

Conversation

@huchenlei
Copy link
Contributor

@huchenlei huchenlei commented Apr 25, 2025

This PR introduces several improvements to the user interface components:

  1. Avatar Component Standardization:

    • Replaced custom avatar implementations with PrimeVue's Avatar component
    • Applied consistent styling and behavior across user-related components
    • Improved accessibility with proper aria-label attributes
  2. CurrentUserButton Improvements:

    • Simplified the button structure and styling
    • Replaced manual avatar/icon handling with PrimeVue's Avatar component
    • Improved computed property for photoURL with proper type safety
    • Added padding to the chevron icon for better spacing
  3. UserPanel Refinements:

    • Updated avatar display to use PrimeVue's Avatar component
    • Improved layout and spacing in the user information section
    • Maintained consistent styling with the rest of the application

The changes focus on standardizing the user interface components, improving code maintainability, and enhancing the visual consistency of the application.

屏幕截图 2025-04-24 211332
屏幕截图 2025-04-24 211346

┆Issue is synchronized with this Notion page by Unito

@huchenlei huchenlei requested a review from a team as a code owner April 25, 2025 01:20
@huchenlei huchenlei merged commit b79cbf6 into main Apr 25, 2025
10 checks passed
@huchenlei huchenlei deleted the avatar branch April 25, 2025 01:49
christian-byrne pushed a commit that referenced this pull request May 20, 2025
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