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.

Commit7f7dfe6

Browse files
committed
fix(sidebar): jumpy in header part
1 parentb866f40 commit7f7dfe6

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

‎containers/Sidebar/Header.js‎

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import PinButton from './PinButton'
77

88
import{
99
Wrapper,
10+
InnerWrapper,
1011
HeaderFuncs,
1112
SiteLogoWrapper,
1213
ExploreWrapper,
@@ -18,22 +19,24 @@ import {
1819

1920
constHeader=({ pin})=>(
2021
<Wrapperpin={pin}>
21-
<HeaderFuncs>
22-
<SiteLogoWrapperpin={pin}>
23-
<SiteLogosrc={`${ICON_BASE}/sidebar/everyday.svg`}/>
24-
</SiteLogoWrapper>
25-
<ExploreWrapperpin={pin}>
26-
<ahref="/communities"rel="noopener noreferrer"target="_blank">
27-
<Buttonsize="small"type="primary"ghost>
28-
<ExploreContent>
29-
<ExploreIconsrc={`${ICON_CMD}/telescope.svg`}/>
30-
<ExploreText>Explore All</ExploreText>
31-
</ExploreContent>
32-
</Button>
33-
</a>
34-
</ExploreWrapper>
35-
</HeaderFuncs>
36-
<PinButtonpin={pin}/>
22+
<InnerWrapper>
23+
<HeaderFuncs>
24+
<SiteLogoWrapperpin={pin}>
25+
<SiteLogosrc={`${ICON_BASE}/sidebar/everyday.svg`}/>
26+
</SiteLogoWrapper>
27+
<ExploreWrapperpin={pin}>
28+
<ahref="/communities"rel="noopener noreferrer"target="_blank">
29+
<Buttonsize="small"type="primary"ghost>
30+
<ExploreContent>
31+
<ExploreIconsrc={`${ICON_CMD}/telescope.svg`}/>
32+
<ExploreText>Explore All</ExploreText>
33+
</ExploreContent>
34+
</Button>
35+
</a>
36+
</ExploreWrapper>
37+
</HeaderFuncs>
38+
<PinButtonpin={pin}/>
39+
</InnerWrapper>
3740
</Wrapper>
3841
)
3942

‎containers/Sidebar/styles/header.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import { theme, cs } from '@utils'
55
import{WrapperasIndexWrapper}from'./index'
66

77
exportconstWrapper=styled.div`
8-
${cs.flex()};
98
margin-top: 14px;
109
margin-bottom:${({ pin})=>(pin ?'0' :'20px')};
1110
${IndexWrapper}:hover & {
1211
margin-bottom: 4px;
1312
}
1413
`
14+
exportconstInnerWrapper=styled.div`
15+
${cs.flex('align-center')};
16+
`
1517
exportconstHeaderFuncs=styled.div`
1618
${cs.flexGrow()};
1719
`

‎containers/Sidebar/styles/menu_list.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
importstyledfrom'styled-components'
22

33
exportconstWrapper=styled.div`
4-
margin-top: 0px;
54
left: 0;
65
position: relative;
76
height: 100%;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp