feat: Enhance user color and banner management
- Updated `useUserColor` hook to support fetching and embedding user color from avatar metadata with authentication. - Introduced `useUserBanner` hook for managing user banners stored in avatar metadata, including fetching and embedding functionality. - Added `fetchAndExtractMetadata` utility to retrieve both color and banner from images. - Implemented `CustomStatusDialog` component for users to set and clear custom status messages. - Modified `SettingsTab` to include custom status functionality and improved user experience. - Enhanced image metadata utilities to support banner extraction and embedding in PNG format. - Updated sidebar settings to handle user profile changes more gracefully.
This commit is contained in:
@@ -26,6 +26,12 @@ export const UserHeroCover = style({
|
||||
transform: 'scale(2)',
|
||||
});
|
||||
|
||||
export const UserHeroBanner = style({
|
||||
height: '100%',
|
||||
width: '100%',
|
||||
objectFit: 'cover',
|
||||
});
|
||||
|
||||
export const UserHeroAvatarContainer = style({
|
||||
position: 'relative',
|
||||
height: toRem(29),
|
||||
@@ -37,6 +43,14 @@ export const UserAvatarContainer = style({
|
||||
transform: 'translateY(-50%)',
|
||||
backgroundColor: color.Surface.Container,
|
||||
});
|
||||
|
||||
export const UserStatusBubble = style({
|
||||
position: 'absolute',
|
||||
left: `calc(${config.space.S400} + ${toRem(64)} + ${config.space.S200})`,
|
||||
bottom: toRem(-8),
|
||||
zIndex: 2,
|
||||
});
|
||||
|
||||
export const UserHeroAvatar = style({
|
||||
outline: `${config.borderWidth.B600} solid ${color.Surface.Container}`,
|
||||
selectors: {
|
||||
|
||||
Reference in New Issue
Block a user