diff --git a/core/docz-core/src/bundler/devserver.ts b/core/docz-core/src/bundler/devserver.ts index aa42c3454..4494b2b96 100644 --- a/core/docz-core/src/bundler/devserver.ts +++ b/core/docz-core/src/bundler/devserver.ts @@ -17,7 +17,7 @@ export const devServerConfig = (hooks: ServerHooks, args: Args) => { publicPath: '/', compress: true, logLevel: args.debug ? 'debug' : 'silent', - clientLogLevel: args.debug ? 'info' : 'none', + clientLogLevel: args.debug ? 'info' : 'silent', contentBase: [nonExistentDir], watchContentBase: true, hot: true, diff --git a/core/docz-theme-default/src/components/shared/Sidebar/index.tsx b/core/docz-theme-default/src/components/shared/Sidebar/index.tsx index 7f8edbbfa..ccdf95fb4 100644 --- a/core/docz-theme-default/src/components/shared/Sidebar/index.tsx +++ b/core/docz-theme-default/src/components/shared/Sidebar/index.tsx @@ -124,6 +124,7 @@ export const Sidebar: SFC = () => { const prevIsDesktop = usePrevious(isDesktop) useEffect(() => { + if (hidden) document.documentElement!.classList.remove('with-overlay') if (!hidden && !prevIsDesktop && isDesktop) { setHidden(true) document.documentElement!.classList.remove('with-overlay')