Pārlūkot izejas kodu

HUE-8395 [dashboard] Remove left column from the initial search layout

Enrico Berti 7 gadi atpakaļ
vecāks
revīzija
0f9738ae70

+ 1 - 3
desktop/core/src/desktop/templates/common_dashboard.mako

@@ -169,9 +169,7 @@
       </div>
 
       <div class="row-fluid" data-bind="visible: previewColumns() == 'search'">
-        <div class="span2 preview-row" style="font-size: 80px;">
-        </div>
-        <div class="span10">
+        <div class="span12">
           <div class="preview-row" style="font-size: 80px; ">
             <i class="fa fa-search" style="font-size: 120px; padding-top: 100px"></i><br/>
             <div style="font-size: 40px; padding-top: 20px; line-height: 48px">${ _('Retrieve and display records of data') }</div>

+ 1 - 0
desktop/libs/dashboard/src/dashboard/static/dashboard/js/search.ko.js

@@ -30,6 +30,7 @@ function queryBuilderSearchLayout(vm, isQueryBuilder) {
 function textSearchLayout(vm, isQueryBuilder) {
   vm.isQueryBuilder(!!isQueryBuilder);
   loadSearchLayout(vm, vm.initial.textSearchLayout);
+  vm.collection.template.isGridLayout(false);
   $(document).trigger("magicSearchLayout");
   huePubSub.publish('dashboard.set.layout');
 }

+ 1 - 0
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -1023,6 +1023,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
     </div>
     <!-- /ko -->
 
+
     <div class="result-main" style="overflow-x: auto">
       <div class="edit-dimensions" style="float: right">
         <div class="badge dimensions-badge-container dimensions-badge-container-add">

+ 3 - 4
desktop/libs/dashboard/src/dashboard/views.py

@@ -67,14 +67,13 @@ QUERY_BUILDER_LAYOUT = [
 ]
 
 TEXT_SEARCH_LAYOUT = [
-     {"size":3,"rows":[{"widgets":[]}],"drops":["temp"],"klass":"card card-home card-column span3"},
-     {"size":9,"rows":[{"widgets":[
+     {"size":12,"rows":[{"widgets":[
          {"size":12,"name":"Filter Bar","widgetType":"filter-widget", "id":"99923aef-b233-9420-96c6-15d48293532b",
           "properties":{},"offset":0,"isLoading":True,"klass":"card card-widget span12"}]},
                         {"widgets":[
-         {"size":12,"name":"Grid Results","widgetType":"html-resultset-widget", "id":"14023aef-b233-9420-96c6-15d48293532b",
+         {"size":12,"name":"HTML Results","widgetType":"html-resultset-widget", "id":"14023aef-b233-9420-96c6-15d48293532b",
           "properties":{},"offset":0,"isLoading":True,"klass":"card card-widget span12"}]}],
-        "drops":["temp"],"klass":"card card-home card-column span9"},
+        "drops":["temp"],"klass":"card card-home card-column span12"},
 ]