Просмотр исходного кода

Instead of checking RT flag at compile time, adjust at run time

Alasdair Smith 8 лет назад
Родитель
Сommit
c3b2af4345

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

@@ -39,6 +39,7 @@ div.full-size(
 			ace-editor="editor",
 			ace-editor="editor",
 			ng-if="!editor.richText",
 			ng-if="!editor.richText",
 			ng-show="!!editor.sharejs_doc && !editor.opening",
 			ng-show="!!editor.sharejs_doc && !editor.opening",
+			style=showRichText ? "top: 40px" : "",
 			theme="settings.theme",
 			theme="settings.theme",
 			keybindings="settings.mode",
 			keybindings="settings.mode",
 			font-size="settings.fontSize",
 			font-size="settings.fontSize",

+ 1 - 4
services/web/public/stylesheets/app/editor.less

@@ -80,10 +80,7 @@
 	.full-size;
 	.full-size;
 }
 }
 
 
-#editor when (@show-rich-text = true) {
-	top: 40px; // TODO: replace with toolbar height var
-}
-#editor-rich-text when (@show-rich-text = true) {
+#editor-rich-text {
 	top: 40px; // TODO: replace with toolbar height var
 	top: 40px; // TODO: replace with toolbar height var
 }
 }