]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/page-display.js
Rolled tri-layout to page edit and book-create
[bookstack] / resources / assets / js / components / page-display.js
index 8bcfa9d94f4c5f2959ca32096936397a3b977d5c..e7dacea64cc9c82c0e21f8ac565d5e6cf67686c6 100644 (file)
@@ -1,4 +1,4 @@
-import Clipboard from "clipboard";
+import Clipboard from "clipboard/dist/clipboard.min";
 import Code from "../services/code";
 
 class PageDisplay {
@@ -136,7 +136,7 @@ class PageDisplay {
 
         // Fix the tree as a sidebar
         function stickTree() {
-            $sidebar.width($bookTreeParent.width() + 15);
+            $sidebar.css('width', $bookTreeParent.width());
             $sidebar.addClass("fixed");
             isFixed = true;
         }