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

Commit 706c7c4

Browse files
committed
refactor(media-quer): improve user list in modal
1 parent 60743a0 commit 706c7c4

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

components/Modal/styles/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export const Wrapper = styled.div`
3131
mode === 'default' ? theme('modal.border') : theme('baseColor.error')};
3232
animation: ${animate.zoomInRule};
3333
34-
${cs.media.mobile`width: 300px`};
35-
${cs.media.mobile`width: 400px`};
34+
${cs.media.tablet`width: 460px`};
35+
${cs.media.mobile`width: 320px`};
3636
`
3737
export const ChildrenWrapper = styled.div`
3838
min-height: 320px;

containers/UserLister/styles/user_list.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,23 @@ export const UserAvatar = styled(Img)`
2424
height: 55px;
2525
border-radius: 4px;
2626
display: block;
27-
`
2827
28+
${cs.media.mobile`
29+
width: 30px;
30+
height: 30px;
31+
`};
32+
`
2933
export const UserBrief = styled.div`
3034
${cs.flexColumnGrow('justify-between')};
3135
margin-left: 18px;
3236
`
3337
export const Title = styled.div`
3438
${cs.flex('align-center')};
3539
color: ${theme('thread.articleTitle')};
40+
41+
${cs.media.tablet`
42+
${cs.flexColumn('align-start')};
43+
`};
3644
`
3745
export const Nickname = styled.div`
3846
font-size: 1rem;
@@ -41,6 +49,18 @@ export const Location = styled.div`
4149
${cs.flex('align-center')};
4250
color: ${theme('thread.articleDigest')};
4351
margin-left: 10px;
52+
53+
${cs.media.tablet`
54+
${cs.truncate('80px')};
55+
margin-left: 0;
56+
margin-bottom: 3px;
57+
`};
58+
59+
${cs.media.mobile`
60+
${cs.truncate('60px')};
61+
margin-left: 0;
62+
margin-bottom: 3px;
63+
`};
4464
`
4565
export const GeoIcon = styled(Img)`
4666
fill: ${theme('thread.articleDigest')};

0 commit comments

Comments
 (0)