summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/components/Sidebar.js
diff options
context:
space:
mode:
authorJohan Preynat <johan.preynat@gmail.com>2016-10-31 17:13:19 +0100
committerJohan Preynat <johan.preynat@gmail.com>2016-10-31 17:13:19 +0100
commit1780435c4fee7e3a6c5aa79e788214a5b6ca8493 (patch)
treec9e4239b4ae75d911025d002122faaea51abb247 /packages/gitbook-plugin-theme-default/src/components/Sidebar.js
parentebf7a5cf506f10b52eaeef94484954b5e6b436ae (diff)
downloadgitbook-1780435c4fee7e3a6c5aa79e788214a5b6ca8493.zip
gitbook-1780435c4fee7e3a6c5aa79e788214a5b6ca8493.tar.gz
gitbook-1780435c4fee7e3a6c5aa79e788214a5b6ca8493.tar.bz2
Use fixed size for sidebar and provide animation
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/components/Sidebar.js')
-rw-r--r--packages/gitbook-plugin-theme-default/src/components/Sidebar.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Sidebar.js b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js
index ad1754e..ab628df 100644
--- a/packages/gitbook-plugin-theme-default/src/components/Sidebar.js
+++ b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js
@@ -12,9 +12,11 @@ const Sidebar = React.createClass({
const { summary } = this.props;
return (
- <div className="Sidebar book-summary">
- <GitBook.InjectedComponent matching={{ role: 'search:container:input' }} />
- <Summary summary={summary} />
+ <div className="Sidebar-Flex">
+ <div className="Sidebar book-summary">
+ <GitBook.InjectedComponent matching={{ role: 'search:container:input' }} />
+ <Summary summary={summary} />
+ </div>
</div>
);
}