This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,12 @@ import {
16
16
Wrapper ,
17
17
ReactionWrapper ,
18
18
Reaction ,
19
+ PlainAction ,
19
20
ReactionAction ,
20
21
ReactionName ,
21
22
CollectIcon ,
22
23
LikeIcon ,
24
+ PlainUserNum ,
23
25
ReactionUserNum ,
24
26
Divider ,
25
27
} from './styles'
@@ -99,10 +101,10 @@ const ArticleHeader = ({
99
101
</ Maybe >
100
102
101
103
< Reaction >
102
- < ReactionAction >
104
+ < PlainAction >
103
105
< ReactionName > 浏览:</ ReactionName >
104
- </ ReactionAction >
105
- < ReactionUserNum > { data . views } </ ReactionUserNum >
106
+ </ PlainAction >
107
+ < PlainUserNum > { data . views } </ PlainUserNum >
106
108
</ Reaction >
107
109
</ ReactionWrapper >
108
110
</ Wrapper >
Original file line number Diff line number Diff line change @@ -28,10 +28,12 @@ export const Reaction = styled.div`
28
28
align-items: center;
29
29
display: flex;
30
30
`
31
- export const ReactionAction = styled . div `
31
+ export const PlainAction = styled . div `
32
32
display: flex;
33
33
align-items: center;
34
34
padding: 2px 3px;
35
+ `
36
+ export const ReactionAction = styled ( PlainAction ) `
35
37
&:hover {
36
38
cursor: pointer;
37
39
font-weight: bold;
@@ -43,11 +45,12 @@ export const ReactionName = styled.div`
43
45
color: ${ theme ( 'article.reactionTitle' ) } ;
44
46
font-size: 0.9rem;
45
47
`
46
- export const ReactionUserNum = styled . div `
48
+ export const PlainUserNum = styled . div `
47
49
color: ${ theme ( 'article.reactionTitle' ) } ;
48
50
font-size: 1rem;
49
51
margin-left: 2px;
50
-
52
+ `
53
+ export const ReactionUserNum = styled ( PlainUserNum ) `
51
54
&:hover {
52
55
cursor: pointer;
53
56
text-decoration: underline;
You can’t perform that action at this time.
0 commit comments