This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 7
7
import React from 'react'
8
8
import { inject , observer } from 'mobx-react'
9
9
import keydown from 'react-keydown'
10
+ import { Row , Col } from 'antd'
10
11
11
12
// import Link from 'next/link'
12
13
import { Button } from '../../components'
@@ -25,6 +26,7 @@ import {
25
26
Search ,
26
27
Notification ,
27
28
HeaderIcon ,
29
+ StateIcon ,
28
30
User ,
29
31
} from './styles'
30
32
@@ -59,7 +61,12 @@ class HeaderContainer extends React.Component {
59
61
ghost
60
62
onClick = { logic . openPreview . bind ( this , 'mst-state' ) }
61
63
>
62
- state
64
+ < Row >
65
+ < Col span = { 9 } >
66
+ < StateIcon path = { getSVGIconPath ( 'header_state' ) } />
67
+ </ Col >
68
+ < Col span = { 12 } > State</ Col >
69
+ </ Row >
63
70
</ Button >
64
71
</ Admin >
65
72
< Search onClick = { logic . openDoraemon } >
Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ export const Router = styled.div`
16
16
`
17
17
18
18
export const Admin = styled . div `
19
- margin-right: 10px ;
19
+ margin-right: 25px ;
20
20
font-size: xx-small;
21
- margin-top: 0.8vh;
21
+ position: relative;
22
+ margin-top: 1px;
22
23
&:after {
23
24
content: '⁝';
25
+ position: absolute;
26
+ top: 12px;
27
+ font-size: large;
24
28
color: ${ theme ( 'header.fg' ) } ;
25
29
margin-left: 5px;
26
30
}
@@ -35,6 +39,14 @@ export const Notification = styled.div`
35
39
margin-top: 0.8vh;
36
40
`
37
41
42
+ export const StateIcon = styled ( ReactSVG ) `
43
+ width: 12px;
44
+ height: 100%;
45
+ cursor: pointer;
46
+ margin-right: 10px;
47
+ margin-top: 1px;
48
+ `
49
+
38
50
export const HeaderIcon = styled ( ReactSVG ) `
39
51
fill: ${ theme ( 'header.fg' ) } ;
40
52
width: 20px;
You can’t perform that action at this time.
0 commit comments