summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src')
-rw-r--r--packages/gitbook-plugin-theme-default/src/components/Toolbar.js8
-rw-r--r--packages/gitbook-plugin-theme-default/src/index.js2
2 files changed, 7 insertions, 3 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Toolbar.js b/packages/gitbook-plugin-theme-default/src/components/Toolbar.js
index 9a60ff4..a7958d6 100644
--- a/packages/gitbook-plugin-theme-default/src/components/Toolbar.js
+++ b/packages/gitbook-plugin-theme-default/src/components/Toolbar.js
@@ -19,8 +19,12 @@ const Toolbar = React.createClass({
<GitBook.Button onClick={this.onToggle}>
<GitBook.Icon id="align-justify" />
</GitBook.Button>
- <GitBook.InjectedComponentSet matching={{ role: 'toolbar:buttons:left' }} />
- <GitBook.InjectedComponentSet matching={{ role: 'toolbar:buttons:right' }} />
+ <div className="Toolbar-left">
+ <GitBook.InjectedComponentSet matching={{ role: 'toolbar:buttons:left' }} />
+ </div>
+ <div className="Toolbar-right">
+ <GitBook.InjectedComponentSet matching={{ role: 'toolbar:buttons:right' }} />
+ </div>
</div>
);
}
diff --git a/packages/gitbook-plugin-theme-default/src/index.js b/packages/gitbook-plugin-theme-default/src/index.js
index 2ef5c63..a8eeb91 100644
--- a/packages/gitbook-plugin-theme-default/src/index.js
+++ b/packages/gitbook-plugin-theme-default/src/index.js
@@ -33,7 +33,7 @@ let ThemeBody = React.createClass({
<Sidebar summary={summary} />
</GitBook.FlexBox>
) : null}
- <GitBook.FlexBox col={9}>
+ <GitBook.FlexBox col={sidebar.open ? 9 : 12}>
<Body page={page} />
</GitBook.FlexBox>
</GitBook.FlexLayout>