Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit89fae40

Browse files
authored
feat(avatar): a mute-mask concept (#1070)
1 parent086974d commit89fae40

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

‎src/components/TheAvatar/PostItemAvatar.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
importReactfrom'react'
22

3-
//import { ICON } from '@/config'
3+
import{ICON}from'@/config'
44
importImgFallbackfrom'@/components/ImgFallback'
55
import{
66
Wrapper,
77
InnerShadow,
88
QuoteShadow,
99
Avatar,
1010
QuoteAvatar,
11+
MaskIcon,
1112
}from'./styles/post_item_avatar'
1213

1314
constPostItemAvatar=({ user, onSelect})=>{
@@ -25,7 +26,9 @@ const PostItemAvatar = ({ user, onSelect }) => {
2526
/>
2627
)}
2728
{user.login==='mydearxym' ?<QuoteShadow/> :<InnerShadow/>}
28-
{/* <Tail src={`${ICON}/shape/tail.svg`} /> */}
29+
{user.login==='mydearxym'&&(
30+
<MaskIconsrc={`${ICON}/user/mute-mask.svg`}/>
31+
)}
2932
</Wrapper>
3033
)
3134
}

‎src/components/TheAvatar/styles/post_item_avatar.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ export const QuoteAvatar = styled(Avatar)`
3838
border: 2px solid;
3939
border-color:${theme('avatar.quote')};
4040
`
41+
exportconstMaskIcon=styled(Img)`
42+
position: absolute;
43+
bottom: -4px;
44+
left: -3px;
45+
${css.size(22)};
46+
fill: #bd572b;
47+
z-index: 2;
48+
`
4149
exportconstTail=styled(TailBase)`
4250
${Wrapper}:hover & {
4351
left: -6px;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp