Browse Source

Enable custom togglers.

Paulo Reis 8 years ago
parent
commit
a3034fc79f

+ 3 - 0
services/web/app/views/project/editor.pug

@@ -62,6 +62,9 @@ block content
 					ng-hide="state.loading",
 					resize-on="layout:chat:resize",
 					minimum-restore-size-west="130"
+					custom-toggler-pane="'west'"
+					custom-toggler-tooltip-open="'Click to open the file tree'"
+					custom-toggler-tooltip-close="'Click to close the file tree'"
 				)
 					.ui-layout-west
 						include ./editor/file-tree

+ 3 - 1
services/web/app/views/project/editor/editor.pug

@@ -8,6 +8,9 @@ div.full-size(
 	initial-size-east="'50%'"
 	minimum-restore-size-east="300"
 	allow-overflow-on="'center'"
+	custom-toggler-pane="'east'"
+	custom-toggler-tooltip-open="'Click to open the PDF'"
+	custom-toggler-tooltip-close="'Click to close the PDF'"
 )
 	.ui-layout-center(
 		ng-controller="ReviewPanelController",
@@ -100,7 +103,6 @@ div.full-size(
 			ng-click="syncToCode()"
 		)
 			i.synctex-control-icon
-			
 div.full-size(
 	ng-if="ui.pdfLayout == 'flat'"
 	ng-show="ui.view == 'pdf'"