浏览代码

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

Enrico Berti 8 年之前
父节点
当前提交
63418a7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

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

@@ -1137,7 +1137,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
           maxLines: $root.editorMode() ? null : 25,
           maxLines: $root.editorMode() ? null : 25,
           minLines: $root.editorMode() ? null : 3
           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():
       % if conf.USE_NEW_AUTOCOMPLETER.get():
       <!-- ko component: { name: 'hueAceAutocompleter', params: { editor: ace, snippet: $data } } --><!-- /ko -->
       <!-- ko component: { name: 'hueAceAutocompleter', params: { editor: ace, snippet: $data } } --><!-- /ko -->
       % endif
       % endif