mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 05:07:06 +08:00
feat(core): adjust workspace avatar style (#6652)

This commit is contained in:
+4
@@ -15,6 +15,8 @@ import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import * as style from './style.css';
|
||||
|
||||
const avatarImageProps = { style: { borderRadius: 8 } };
|
||||
|
||||
export const ProfilePanel = () => {
|
||||
const t = useAFFiNEI18N();
|
||||
|
||||
@@ -151,6 +153,8 @@ export const ProfilePanel = () => {
|
||||
size={56}
|
||||
url={avatarUrl}
|
||||
name={name}
|
||||
imageProps={avatarImageProps}
|
||||
fallbackProps={avatarImageProps}
|
||||
colorfulFallback
|
||||
hoverIcon={isOwner ? <CameraIcon /> : undefined}
|
||||
onRemove={canAdjustAvatar ? handleRemoveUserAvatar : undefined}
|
||||
|
||||
Reference in New Issue
Block a user