Commit 83db3c8d authored by mercury233's avatar mercury233

fix header position

parent 7be40e0d
Pipeline #19631 passed with stages
in 1 minute and 47 seconds
......@@ -151,10 +151,10 @@ function Index({ children, messages, dispatch, client, language }) {
);
return (
<div style={{ display: 'flex', flexDirection: 'column', flex: 1, minHeight: '100%' }}>
<DocumentTitle title={messages.title || 'Moe Cube'}/>
<DocumentTitle title={messages.title || 'MoeCube'}/>
{client !== 'electron' &&
<Header style={{ display: 'flex', alignItems: 'center' }}>
<Header style={{ display: 'flex', alignItems: 'center' }} className="mc-header">
<Link to="/" style={{ marginTop: '20px' }}>
<img alt="logo" src={logo} style={{ width: '140px', height: '44px' }}/>
</Link>
......@@ -182,7 +182,7 @@ function Index({ children, messages, dispatch, client, language }) {
</Menu.Item>
</Menu>
<div style={{ position: 'absolute', right: '40px' }}>
<div className="mc-userpanel">
<UserPanel />
</div>
</Header>
......
.particles {
position: fixed;
top: 0;
......@@ -7,3 +6,18 @@
width: 100%;
height: 100%;
}
.mc-userpanel {
position: absolute;
right: 40px;
}
@media (max-width: 768px) {
.mc-header {
padding: 0 10px;
}
.mc-userpanel {
right: 10px;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment