Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 307799c

Browse files
committed
fix(wiki-thread): align righ-part btn, desc etc
1 parent 80b397c commit 307799c

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

containers/WikiThread/index.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,7 @@ import { ArticleContentLoading } from '@components/LoadingEffects'
1717
import GithubSyncWarning from '@components/GithubSyncWarning'
1818
import Contributors from './Contributors'
1919

20-
import {
21-
Wrapper,
22-
LeftPart,
23-
WikiWrapper,
24-
LeftPadding,
25-
RightPart,
26-
RightPadding,
27-
PublishBtn,
28-
} from './styles'
29-
20+
import { Wrapper, LeftPart, WikiWrapper, RightPart, PublishBtn } from './styles'
3021
import { useInit, syncWarnOnClose } from './logic'
3122

3223
/* eslint-disable-next-line */
@@ -64,7 +55,6 @@ const WikiThreadContainer = ({ wikiThread }) => {
6455
return (
6556
<Wrapper>
6657
<GithubSyncWarning show={showSyncWarning} onClose={syncWarnOnClose} />
67-
<LeftPadding />
6858
<LeftPart>
6959
<WikiWrapper>{renderView(wikiData, curView, communityRaw)}</WikiWrapper>
7060
</LeftPart>
@@ -91,7 +81,6 @@ const WikiThreadContainer = ({ wikiThread }) => {
9181
/>
9282
</React.Fragment>
9383
</RightPart>
94-
<RightPadding />
9584
</Wrapper>
9685
)
9786
}

containers/WikiThread/styles/index.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ export const Wrapper = styled.div`
99
${cs.flex()};
1010
width: 100%;
1111
`
12-
export const LeftPadding = styled.div`
13-
width: 3vw;
14-
`
15-
export const RightPadding = styled.div`
16-
width: 4vw;
17-
`
1812
export const LeftPart = styled.div`
1913
flex-grow: 1;
2014
width: 100%;
@@ -23,9 +17,9 @@ export const WikiWrapper = styled.div`
2317
width: 90%;
2418
`
2519
export const RightPart = styled.div`
26-
${cs.flexColumn('align-center')};
27-
width: 25vw;
28-
margin-left: 30px;
20+
${cs.flexColumn('align-start')};
21+
width: 280px;
22+
margin-left: 50px;
2923
padding-top: 5px;
3024
${cs.media.tablet`display: none;`};
3125
`

0 commit comments

Comments
 (0)