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.

Commitd7a3076

Browse files
committed
style(ReactionHeader): rm hover style on views
1 parentfcddc29 commitd7a3076

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

‎components/ArticleHeader/index.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ import {
1616
Wrapper,
1717
ReactionWrapper,
1818
Reaction,
19+
PlainAction,
1920
ReactionAction,
2021
ReactionName,
2122
CollectIcon,
2223
LikeIcon,
24+
PlainUserNum,
2325
ReactionUserNum,
2426
Divider,
2527
}from'./styles'
@@ -99,10 +101,10 @@ const ArticleHeader = ({
99101
</Maybe>
100102

101103
<Reaction>
102-
<ReactionAction>
104+
<PlainAction>
103105
<ReactionName>浏览:</ReactionName>
104-
</ReactionAction>
105-
<ReactionUserNum>{data.views}</ReactionUserNum>
106+
</PlainAction>
107+
<PlainUserNum>{data.views}</PlainUserNum>
106108
</Reaction>
107109
</ReactionWrapper>
108110
</Wrapper>

‎components/ArticleHeader/styles/index.js‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ export const Reaction = styled.div`
2828
align-items: center;
2929
display: flex;
3030
`
31-
exportconstReactionAction=styled.div`
31+
exportconstPlainAction=styled.div`
3232
display: flex;
3333
align-items: center;
3434
padding: 2px 3px;
35+
`
36+
exportconstReactionAction=styled(PlainAction)`
3537
&:hover {
3638
cursor: pointer;
3739
font-weight: bold;
@@ -43,11 +45,12 @@ export const ReactionName = styled.div`
4345
color:${theme('article.reactionTitle')};
4446
font-size: 0.9rem;
4547
`
46-
exportconstReactionUserNum=styled.div`
48+
exportconstPlainUserNum=styled.div`
4749
color:${theme('article.reactionTitle')};
4850
font-size: 1rem;
4951
margin-left: 2px;
50-
52+
`
53+
exportconstReactionUserNum=styled(PlainUserNum)`
5154
&:hover {
5255
cursor: pointer;
5356
text-decoration: underline;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp