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

This commit is contained in:
Alasdair Smith 2018-04-06 16:59:06 +01:00
parent d433a88158
commit c3b2af4345
2 changed files with 2 additions and 4 deletions

View file

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

View file

@ -80,10 +80,7 @@
.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
}