Browse Source

HUE-7096 [editor] Set opacity of the editors to semi-transparent when in presentation mode

Enrico Berti 8 years ago
parent
commit
63418a7

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -1137,7 +1137,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
           maxLines: $root.editorMode() ? null : 25,
           minLines: $root.editorMode() ? null : 3
         }
-      }, style: {opacity: statementType() !== 'text' ? '0.75' : '1', 'min-height': $root.editorMode() ? '0' : '48px', 'top': $root.editorMode() && statementType() !== 'text' ? '60px' : '0'}"></div>
+      }, style: {opacity: statementType() !== 'text' || $root.isPresentationMode() ? '0.75' : '1', 'min-height': $root.editorMode() ? '0' : '48px', 'top': $root.editorMode() && statementType() !== 'text' ? '60px' : '0'}"></div>
       % if conf.USE_NEW_AUTOCOMPLETER.get():
       <!-- ko component: { name: 'hueAceAutocompleter', params: { editor: ace, snippet: $data } } --><!-- /ko -->
       % endif