Mobile Avatar Book Smooth Load (#254)

Mobile Avatr Book Smooth Load
This commit is contained in:
KoalaSat 2022-09-23 12:57:08 +02:00 committed by GitHub
parent 81c5a3d9f5
commit 8b60396da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 11 deletions

View File

@ -169,6 +169,8 @@ class BookPage extends Component {
<ListItemAvatar>
<RobotAvatar
nickname={params.row.maker_nick}
style={{ width: 45, height: 45 }}
smooth={true}
orderType={params.row.type}
statusColor={this.statusBadgeColor(params.row.maker_status)}
tooltip={t(params.row.maker_status)}
@ -315,6 +317,7 @@ class BookPage extends Component {
<RobotAvatar
nickname={params.row.maker_nick}
smooth={true}
style={{ width: 45, height: 45 }}
orderType={params.row.type}
statusColor={this.statusBadgeColor(params.row.maker_status)}
tooltip={t(params.row.maker_status)}

View File

@ -45,17 +45,18 @@ const RobotAvatar: React.FC<DepthChartProps> = ({
const getAvatar = () => {
if (smooth) {
return (
<SmoothImage
className={avatarClass}
src={avatarSrc}
imageStyles={{
...style,
borderRadius: '50%',
transform: 'scaleX(-1)',
border: '0.3px solid #555',
filter: 'dropShadow(0.5px 0.5px 0.5px #000000)',
}}
/>
<div style={style}>
<SmoothImage
className={avatarClass}
src={avatarSrc}
imageStyles={{
borderRadius: '50%',
transform: 'scaleX(-1)',
border: '0.3px solid #555',
filter: 'dropShadow(0.5px 0.5px 0.5px #000000)'
}}
/>
</div>
);
} else {
return (