Skip to content

Commit

Permalink
fix: edit page button is overlayed by github link
Browse files Browse the repository at this point in the history
  • Loading branch information
capaj authored and pedronauck committed Dec 13, 2018
1 parent c67fa41 commit 341e03a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/docz-theme-default/src/components/ui/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const EditPage = styled(ButtonLink.withComponent('a'))`
${p =>
p.theme.docz.mq({
visibility: ['hidden', 'hidden', 'visible'],
top: [0, -60, 10],
right: [0, 0, 32],
top: [0, -60, 32],
right: [0, 0, 40],
})};
`

Expand All @@ -73,7 +73,7 @@ export const Page: SFC<PageProps> = ({

return (
<ThemeConfig>
{({ repository, ...config }) => (
{({ repository, ...config }: { repository: string }) => (
<Main config={config}>
{repository && <GithubLink repository={repository} />}
{!fullpage && <Sidebar />}
Expand Down
2 changes: 1 addition & 1 deletion packages/docz-theme-default/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const mergeTheme = (config: any) => (old: any) => ({

const Theme = () => (
<ThemeConfig>
{config => (
{(config: object) => (
<ThemeProvider theme={mergeTheme(config)}>
<DocPreview
components={{
Expand Down

0 comments on commit 341e03a

Please sign in to comment.