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 +14
-6
lines changed
src/containers/viewer/ArticleViewer Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ const PostViewer: FC<TProps> = ({ article, loading }) => {
38
38
< Wrapper >
39
39
< Header article = { article } />
40
40
< Title >
41
- { article . title }
42
- < SubTitle > # { article . id } </ SubTitle >
41
+ < span > { article . title } </ span >
42
+ < SubTitle > { article . id } </ SubTitle >
43
43
</ Title >
44
44
< ArticleInfo article = { article } />
45
45
< ViewportTracker onEnter = { hideFixedHeader } onLeave = { showFixedHeader } />
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components'
2
2
3
- import css , { theme } from '@/utils/css'
3
+ import { theme } from '@/utils/css'
4
4
5
5
export const Wrapper = styled . div `
6
6
padding: 0 8px;
@@ -11,13 +11,21 @@ export const BodyWrapper = styled.div`
11
11
margin-top: 5px;
12
12
`
13
13
export const Title = styled . div `
14
- ${ css . flex ( 'align-center' ) } ;
15
14
color: ${ theme ( 'thread.articleTitle' ) } ;
16
15
font-size: 25px;
17
16
`
18
- export const SubTitle = styled . div `
17
+ export const SubTitle = styled . span `
18
+ display: inline-block;
19
19
color: ${ theme ( 'thread.articleTitle' ) } ;
20
20
opacity: 0.4;
21
- font-size: 18px ;
21
+ font-size: 19px ;
22
22
margin-left: 10px;
23
+ margin-top: -2px;
24
+
25
+ &:before {
26
+ content: '#';
27
+ margin-top: 1px;
28
+ margin-right: 2px;
29
+ font-size: 17px;
30
+ }
23
31
`
You can’t perform that action at this time.
0 commit comments