浏览代码

[editor] Added ultra-compact result table for small windows

Enrico Berti 9 年之前
父节点
当前提交
5c4f691

+ 6 - 0
desktop/libs/notebook/src/notebook/static/notebook/css/notebook.css

@@ -836,4 +836,10 @@ h4.header {
   padding-left: 4px;
   border-bottom: 1px solid #DDD;
   padding-bottom: 3px;
+}
+
+@media screen and ( max-height: 710px ){
+  .table-condensed th, .table-condensed td {
+    padding: 1px 2px;
+  }
 }

+ 7 - 0
desktop/libs/notebook/src/notebook/templates/editor.mako

@@ -27,6 +27,13 @@
 ${ commonheader(_('Editor'), editor_type, user, "68px") | n,unicode }
 
 ${ editorComponents.includes() }
+
+<style type="text/css">
+  .snippet {
+    margin-right: 10px;
+  }
+</style>
+
 ${ editorComponents.topBar('editor', editor_type) }
 ${ editorComponents.commonHTML() }