Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 875c267

Browse files
authored
chore: avatars group rename (#1318)
* style(avatar): adjust more item padding/color * style(about-thread): adjust sidebar style * style(publish): add publish icon * style(about-thread): adjust title/desc font & margin * refactor(renaming): AvatarsRow -> AvatarsGroup * style(drawer): adjust animation feel * style(drawer): turning animation feel
1 parent 5d75b98 commit 875c267

File tree

30 files changed

+69
-53
lines changed

30 files changed

+69
-53
lines changed

src/containers/content/WorksContent/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger'
1212
import { bond } from '@/utils/mobx'
1313

1414
import Pagi from '@/widgets/Pagi'
15-
// import AvatarsRow from '@/widgets/AvatarsRow'
15+
// import AvatarsGroup from '@/widgets/AvatarsGroup'
1616

1717
import type { TStore } from './store'
1818

@@ -64,7 +64,7 @@ const WorksContentContainer: FC<TProps> = ({
6464
<Pagi margin={{ top: '60px', bottom: '80px' }} />
6565
{/* <PagiInfo>
6666
<PagiInfoTitle>活跃用户</PagiInfoTitle>
67-
<AvatarsRow users={tmpUsers} total={10} showTotalNumber />
67+
<AvatarsGroup users={tmpUsers} total={10} showTotalNumber />
6868
</PagiInfo> */}
6969
</MainContent>
7070
{!isMobile && <RightSidebar showSidebar={showSidebar} />}

src/containers/thread/AboutThread/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Sidebar: FC = () => {
2121
<Block>
2222
<Title>官方主页</Title>
2323
<Desc>
24-
<Linker src="https://groupher.com" left={-2} />
24+
<Linker src="https://groupher.com" left={-2} top={12} />
2525
</Desc>
2626
</Block>
2727
<Block>

src/containers/thread/AboutThread/styles/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,33 @@ export const MainWrapper = styled.div`
1616
1717
background: transparent;
1818
border-radius: 6px;
19-
margin-top: 14px;
20-
padding-left: 25px;
19+
margin-top: 25px;
20+
padding-left: 22px;
2121
`
2222
export const Block = styled.div`
2323
margin-bottom: 30px;
2424
padding-bottom: 30px;
2525
border-bottom: 1px solid;
2626
border-bottom-color: ${theme('border')};
27-
width: 660px;
27+
width: 620px;
2828
`
2929
export const IntroBlock = styled(Block)`
3030
padding-right: 20px;
3131
`
3232
export const StateBlock = styled(Block)`
33-
padding-right: 10px;
33+
padding-right: 0;
3434
`
3535
export const MemberBlock = styled(Block)`
3636
border-bottom: none;
3737
`
3838
export const Title = styled.div`
39-
font-size: 14px;
39+
font-size: 16px;
4040
color: ${theme('thread.articleDigest')};
4141
font-weight: 600;
4242
margin-bottom: 15px;
4343
`
4444
export const Desc = styled.div`
45-
font-size: 14px;
45+
font-size: 15px;
4646
color: ${theme('thread.articleDigest')};
4747
line-height: 1.8;
4848
`

src/containers/thread/AboutThread/styles/members/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const Header = styled.div`
2525
margin-bottom: 30px;
2626
`
2727
export const Title = styled.div`
28-
font-size: 14px;
28+
font-size: 16px;
2929
color: ${theme('thread.articleDigest')};
3030
font-weight: 600;
3131
`

src/containers/thread/AboutThread/styles/sidebar.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ import css, { theme } from '@/utils/css'
55
export const Wrapper = styled.div`
66
width: 300px;
77
height: auto;
8-
/* background: #f1f3f4; */
9-
border: 1px solid;
10-
border-color: ${theme('border')};
11-
border-radius: 5px;
12-
padding: 20px;
13-
padding-top: 24px;
8+
border-left: 1px solid;
9+
border-left-color: ${theme('border')};
10+
padding-left: 40px;
11+
padding-top: 10px;
1412
padding-bottom: 0;
15-
margin-top: 18px;
16-
margin-left: 80px;
13+
margin-top: 19px;
14+
margin-left: 60px;
1715
`
1816
export const Block = styled.div`
1917
margin-bottom: 20px;

src/containers/thread/KanbanThread/Actions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ICON } from '@/config'
44
import { mockUsers } from '@/utils/mock'
55

66
import { IconSwitcher } from '@/widgets/Switcher'
7-
import AvatarsRow from '@/widgets/AvatarsRow'
7+
import AvatarsGroup from '@/widgets/AvatarsGroup'
88
import { Space } from '@/widgets/Common'
99

1010
import {
@@ -51,7 +51,7 @@ const Actions: FC = () => {
5151
</ModeWrapper>
5252
<Space right={20} />
5353
<JoinTitle>参与者</JoinTitle>
54-
<AvatarsRow size="medium" users={mockUsers(6)} total={20} />
54+
<AvatarsGroup size="medium" users={mockUsers(6)} total={20} />
5555
{/* <Space right={25} /> */}
5656
{/* <NewButton size="medium">
5757
<BtnText>新增</BtnText>

src/containers/tool/Drawer/Viewer/DesktopView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ const DesktopView: FC<TProps> = ({
2929
articleNavi,
3030
children,
3131
}) => {
32-
const visible2 = false
33-
32+
console.log('--> visible --> ', visible)
3433
return (
3534
<Fragment>
3635
<DrawerOverlay

src/containers/tool/Drawer/styles/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export const DrawerOverlay = styled.div<TActive>`
2828
background: ${({ visible }) => (visible ? theme('drawer.mask') : 'none')};
2929
opacity: ${({ visible }) => (visible ? 0.5 : 0)};
3030
31-
transition: visibility 0.25s linear, opacity 0.2s linear,
32-
background 0.5s linear;
31+
transition: visibility 0.1s ease-in, opacity 0.1s ease-in,
32+
background 0.1s ease-in;
3333
`
3434
// see https://stackoverflow.com/questions/60079950/when-do-i-use-attrs-vs-passing-props-directly-with-styled-components
3535

@@ -91,7 +91,7 @@ export const DrawerWrapper = styled.div.attrs(
9191
9292
will-change: transform, max-width, opacity;
9393
// 在宽屏时滑出来时,是从内容页而不是实际的 window 页滑出, 加 delay 可以在视觉上抵消从外部滑入的跳动感
94-
transition-delay: 0s, 0s, 0.06s;
94+
transition-delay: 0s, 0s, 0.14s;
9595
9696
${css.media.mobile`
9797
right: 0;

src/containers/unit/Comments/HeadBar/PublishBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Avatar,
1010
UserName,
1111
ActionsWrapper,
12-
EditIcon,
12+
Publishcon,
1313
} from '../styles/head_bar/publish_bar'
1414

1515
type TProps = {
@@ -35,7 +35,7 @@ const PublishBar: FC<TProps> = ({ closeEditor }) => {
3535
</Button>
3636

3737
<Button size="small" space={10}>
38-
<EditIcon />
38+
<Publishcon />
3939
发布
4040
</Button>
4141
</ActionsWrapper>

src/containers/unit/Comments/styles/head_bar/publish_bar.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from 'styled-components'
22

33
import css, { theme } from '@/utils/css'
4-
import EditPenSVG from '@/icons/EditPen'
4+
import EditPublishSVG from '@/icons/EditPublish'
55
import Img from '@/Img'
66

77
export const Wrapper = styled.div`
@@ -22,8 +22,8 @@ export const UserName = styled.div`
2222
export const ActionsWrapper = styled.div`
2323
${css.flex('align-center')};
2424
`
25-
export const EditIcon = styled(EditPenSVG)`
26-
${css.size(12)};
25+
export const Publishcon = styled(EditPublishSVG)`
26+
${css.size(13)};
2727
fill: white;
28-
margin-right: 5px;
28+
margin-right: 6px;
2929
`

0 commit comments

Comments
 (0)