瀏覽代碼

HUE-7644 [dashboard] Optimize initial search bar for smaller resolutions too

Enrico Berti 8 年之前
父節點
當前提交
c99997d

文件差異過大導致無法顯示
+ 0 - 0
desktop/libs/dashboard/src/dashboard/static/dashboard/css/search.css


+ 4 - 3
desktop/libs/dashboard/src/dashboard/static/dashboard/less/search.less

@@ -47,7 +47,7 @@
 
   .search-bar .app-header {
     padding-top: 5px;
-    margin-right: 15px;
+    margin-right: 0;
   }
 
   .search-bar form, .search-bar form select {
@@ -64,12 +64,13 @@
     height: 100%;
 
     .search-bar-logo {
-      .flex(1 0 180px);
+      .flex(1 0 160px);
     }
 
     .search-bar-middle {
       .flex(1 1 100%);
-      padding: 0 20px;
+      padding: 0;
+      white-space: nowrap;
 
       .search-bar-query-container {
         .display-flex();

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

@@ -63,7 +63,6 @@ from dashboard.conf import USE_GRIDSTER, HAS_REPORT_ENABLED
     </div>
     <div class="search-bar-middle">
       <form class="form-search" data-bind="visible: $root.isEditing() && columns().length == 0">
-        ${ _('Select one') }
         <!-- ko if: $root.initial.engines().length > 1 -->
         <select class="input-medium" data-bind="options: $root.initial.engines, value: $root.collection.engine, optionsText: 'name',  optionsValue: 'type', disable: isSyncingCollections"></select>
         <!-- /ko -->

部分文件因文件數量過多而無法顯示