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.

feat(avatar): a mute-mask concept#1070

Merged
mydearxym merged 1 commit intodevfromavatar-mask-concept
Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletionssrc/components/TheAvatar/PostItemAvatar.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
import React from 'react'

//import { ICON } from '@/config'
import { ICON } from '@/config'
import ImgFallback from '@/components/ImgFallback'
import {
Wrapper,
InnerShadow,
QuoteShadow,
Avatar,
QuoteAvatar,
MaskIcon,
} from './styles/post_item_avatar'

const PostItemAvatar = ({ user, onSelect }) => {
Expand All@@ -25,7 +26,9 @@ const PostItemAvatar = ({ user, onSelect }) => {
/>
)}
{user.login === 'mydearxym' ? <QuoteShadow /> : <InnerShadow />}
{/* <Tail src={`${ICON}/shape/tail.svg`} /> */}
{user.login === 'mydearxym' && (
<MaskIcon src={`${ICON}/user/mute-mask.svg`} />
)}
</Wrapper>
)
}
Expand Down
8 changes: 8 additions & 0 deletionssrc/components/TheAvatar/styles/post_item_avatar.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -38,6 +38,14 @@ export const QuoteAvatar = styled(Avatar)`
border: 2px solid;
border-color: ${theme('avatar.quote')};
`
export const MaskIcon = styled(Img)`
position: absolute;
bottom: -4px;
left: -3px;
${css.size(22)};
fill: #bd572b;
z-index: 2;
`
export const Tail = styled(TailBase)`
${Wrapper}:hover & {
left: -6px;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp