Explorar o código

[editor] Added more space on top of the history tables

Enrico Berti %!s(int64=9) %!d(string=hai) anos
pai
achega
312e607

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

@@ -447,14 +447,14 @@ ${ require.config() }
           <div class="margin-top-20 margin-left-10" style="font-style: italic">${ _("No queries to be shown.") }</div>
           <!-- /ko -->
           <!-- ko if: $parent.history().length > 0 -->
-          <table class="table table-condensed">
+          <table class="table table-condensed margin-top-10">
             <tbody data-bind="foreach: $parent.history">
               <tr class="pointer" data-bind="click: function() { if (getSelection().toString().length == 0) { location.href=url; } }">
-                <td style="width: 100px" class="muted"><span data-bind="text: moment(lastExecuted).fromNow(), attr: {title: moment(lastExecuted).format('LLL')}"></span></td>
-                <td style="width: 25px" class="muted">
+                <td style="width: 100px" class="muted" data-bind="style:{'border-top-width': $index()==0 ? '0' : ''}"><span data-bind="text: moment(lastExecuted).fromNow(), attr: {title: moment(lastExecuted).format('LLL')}"></span></td>
+                <td style="width: 25px" class="muted" data-bind="style:{'border-top-width': $index()==0 ? '0' : ''}">
                   <i class="fa fa-bolt inactive-action" data-bind="css: {'fa-fighter-jet': status == 'running', 'fa-cloud-download': status == 'available'}, attr: {'title': status}"></i>
                 </td>
-                <td><code data-bind="text: query" style="white-space: normal"></code></td>
+                <td data-bind="style:{'border-top-width': $index()==0 ? '0' : ''}"><code data-bind="text: query" style="white-space: normal"></code></td>
               </tr>
             </tbody>
           </table>
@@ -470,7 +470,7 @@ ${ require.config() }
           <div class="margin-top-20 margin-left-10" style="font-style: italic">${ _("You don't have any saved query.") }</div>
           <!-- /ko -->
           <!-- ko if: ! queriesHasErrors() && ! loadingQueries() && queries().length > 0 -->
-          <table class="table table-condensed">
+          <table class="table table-condensed margin-top-10">
             <thead>
               <tr>
                 <th style="width: 16%">${ _("Name") }</th>