Эх сурвалжийг харах

[editor] Set min height of code editor to 8 lines

Johan Ahlen 10 жил өмнө
parent
commit
93980a6

+ 2 - 2
desktop/libs/notebook/src/notebook/static/notebook/css/notebook.css

@@ -614,8 +614,8 @@ table.airy tr td {
   padding: 4px;
 }
 
-.ace-editor {
-  height: 200px;
+.single-snippet-editor {
+  min-height: 128px;
 }
 
 .ace-filechooser {

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

@@ -491,7 +491,7 @@ ${ require.config() }
 <script type="text/html" id="code-editor-snippet-body">
   <div class="row-fluid" style="margin-bottom: 5px">
     <div class="editor span12" data-bind="clickForAceFocus: ace">
-      <div class="ace-editor" data-bind="css: {'active-editor': inFocus }, attr: { id: id() }, delayedOverflow, aceEditor: {
+      <div class="ace-editor" data-bind="css: {'single-snippet-editor' : $root.editorMode, 'active-editor': inFocus }, attr: { id: id() }, delayedOverflow, aceEditor: {
           snippet: $data,
           openIt: '${ _ko("Alt or Ctrl + Click to open it") }',
           aceOptions: {