feat(core): adjust workspace avatar style (#6652)

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