mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Fix position of sidebar toggle button
This commit is contained in:
@@ -24618,7 +24618,7 @@ function updateButton(opts) {
|
||||
}
|
||||
|
||||
if (_.isNumber(opts.index) && opts.index >= 0) {
|
||||
insertAt($toolbar, '.btn, .dropdown', opts.index, $result);
|
||||
insertAt($toolbar, '.btn, .dropdown, h1', opts.index, $result);
|
||||
} else {
|
||||
$result.insertBefore($title);
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ function updateButton(opts) {
|
||||
}
|
||||
|
||||
if (_.isNumber(opts.index) && opts.index >= 0) {
|
||||
insertAt($toolbar, '.btn, .dropdown', opts.index, $result);
|
||||
insertAt($toolbar, '.btn, .dropdown, h1', opts.index, $result);
|
||||
} else {
|
||||
$result.insertBefore($title);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user