mirror of
https://github.com/zhigang1992/docz.git
synced 2026-04-28 17:35:54 +08:00
fix(docz-theme-default): fill adjustments
This commit is contained in:
@@ -22,7 +22,7 @@ interface WrapperProps {
|
||||
|
||||
const sidebarBg = get('colors.sidebarBg')
|
||||
const sidebarText = get('colors.sidebarText')
|
||||
const sidebarBorder = get('colors.sidebarText')
|
||||
const sidebarBorder = get('colors.sidebarBorder')
|
||||
|
||||
const position = (p: WrapperProps) =>
|
||||
p.theme.docz.mq({
|
||||
|
||||
@@ -11,7 +11,7 @@ const Wrapper = styled('div')`
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: 100vh;
|
||||
color: ${get('colors.text')};
|
||||
background: ${get('colors.background')};
|
||||
`
|
||||
|
||||
@@ -252,7 +252,7 @@ export class Render extends Component<RenderComponentProps, RenderState> {
|
||||
onClick={this.handleShowEditorToggle}
|
||||
title={showEditor ? 'Close editor' : 'Show editor'}
|
||||
>
|
||||
<Code />
|
||||
<Code width={15} />
|
||||
</Action>
|
||||
</Actions>
|
||||
)
|
||||
@@ -384,7 +384,7 @@ export class Render extends Component<RenderComponentProps, RenderState> {
|
||||
}
|
||||
|
||||
private handleShowEditorToggle = () => {
|
||||
this.setState(prevState => ({ showEditor: !prevState.showEditor }))
|
||||
this.setState(state => ({ showEditor: !state.showEditor }))
|
||||
}
|
||||
|
||||
private handleShow = (showing: 'jsx' | 'html') => () => {
|
||||
|
||||
Reference in New Issue
Block a user