Skip to content

Commit

Permalink
fix: padding for no demo docs
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 24, 2020
1 parent 9ec185f commit 67d7abc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/_docs/defineDemo.tsx
Expand Up @@ -13,9 +13,13 @@ export function defineDemo(

return (
<div>
<div id="demo">
{Demo ? <Demo /> : null}
</div>
{ Demo
? (
<div id="demo">
<Demo />
</div>)
: null
}
{Docs}
</div>
)
Expand Down

0 comments on commit 67d7abc

Please sign in to comment.