Browse Source

HUE-8243 [dashboard] Improve look of layout chooser

Enrico Berti 7 years ago
parent
commit
d2e8397d60

+ 2 - 2
desktop/core/src/desktop/templates/common_dashboard.mako

@@ -67,12 +67,12 @@
     % else:
     <a href="javascript: queryBuilderSearchLayout(searchViewModel)" onmouseover="searchViewModel.previewColumns('dashboard')" onmouseout="searchViewModel.previewColumns('')">
       <div class="layout-container">
-        <div class="layout-box" style="width: 100px; margin-left: 4px; padding-top:20px">${ _("Analytics") }</div>
+        <div class="layout-box layout-box-text">${ _("Analytics") }</div>
       </div>
     </a>
     <a href="javascript: textSearchLayout(searchViewModel, true)" onmouseover="searchViewModel.previewColumns('search')" onmouseout="searchViewModel.previewColumns('')">
       <div class="layout-container">
-        <div class="layout-box" style="width: 100px; margin-left: 4px; padding-top:20px">${ _("Search") }</div>
+        <div class="layout-box layout-box-text">${ _("Search") }</div>
       </div>
     </a>
     % endif

File diff suppressed because it is too large
+ 0 - 0
desktop/libs/dashboard/src/dashboard/static/dashboard/css/common_dashboard.css


+ 8 - 0
desktop/libs/dashboard/src/dashboard/static/dashboard/less/common_dashboard.less

@@ -195,6 +195,14 @@
     text-align: center;
   }
 
+  .layout-box-text {
+    width: 100%;
+    line-height: 46px;
+    margin-left: 4px;
+    color: @cui-gray-700;
+    font-weight: bold;
+  }
+
   .layout-box i {
     color: @cui-gray-600;
     font-size: 28px;

Some files were not shown because too many files changed in this diff