Selaa lähdekoodia

HUE-3294 [core] Slightly increase the size of the assist top buttons

Johan Ahlen 9 vuotta sitten
vanhempi
commit
a6bb96e

+ 3 - 3
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -3271,9 +3271,9 @@ input[type='password']::-ms-reveal {
   display: -ms-flexbox;
   display: flex;
   position: relative;
-  -ms-flex: 1 1 29px;
-  flex: 1 1 29px;
-  padding: 10px;
+  -ms-flex: 1 1 36px;
+  flex: 1 1 36px;
+  padding: 10px 10px 5px 10px;
 }
 
 .search-container > input {

+ 1 - 2
desktop/core/src/desktop/static/desktop/css/responsive.css

@@ -274,7 +274,6 @@ body {
   flex: 0;
   position: relative;
   background-color: #FFF;
-  padding-top: 10px;
   min-width: 250px;
 }
 
@@ -378,7 +377,7 @@ body {
   margin: 0;
   z-index: 1000;
   color: #D1D1D1;
-  font-size: 12px;
+  font-size: 14px;
   -webkit-transition: margin 0.2s linear, color 0.5s ease;
   -moz-transition: margin 0.2s linear, color 0.5s ease;
   -ms-transition: margin 0.2s linear, color 0.5s ease;

+ 0 - 1
desktop/core/src/desktop/static/desktop/js/sqlAutocompleter2.js

@@ -127,7 +127,6 @@ var SqlAutocompleter2 = (function () {
         silenceErrors: true,
         tables: parseResult.suggestJoins.tables,
         successCallback: function (data) {
-          console.log(data);
           data.values.forEach(function (value) {
             var suggestionString = parseResult.suggestJoins.prependJoin ? (parseResult.lowerCase ? 'join ' : 'JOIN ') : '';
             var first = true;

+ 3 - 3
desktop/core/src/desktop/templates/assist.mako

@@ -122,13 +122,13 @@ from metadata.conf import has_navigator
 
     .assist-panel-switches {
       padding-left: 12px;
-      height: 29px;
+      height: 40px;
       border-bottom: 1px solid #f1f1f1;
     }
 
     .assist-type-switch {
       display: inline-block;
-      font-size: 16px;
+      font-size: 18px;
       margin-right: 2px;
       cursor: pointer;
     }
@@ -1167,7 +1167,7 @@ from metadata.conf import has_navigator
   <script type="text/html" id="assist-panel-template">
     <div style="display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; position:relative; height: 100%; overflow: hidden;">
       <!-- ko if: availablePanels.length > 1 -->
-      <div style="position: relative; flex: 0 0 29px;" class="assist-panel-switches">
+      <div style="position: relative; flex: 0 0 40px; line-height: 40px;" class="assist-panel-switches">
         <!-- ko foreach: availablePanels -->
         <div class="inactive-action assist-type-switch" data-bind="click: function () { $parent.visiblePanel($data); }, css: { 'blue': $parent.visiblePanel() === $data }, attr: { 'title': name }">
           <i class="fa fa-fw valign-middle" data-bind="css: icon"></i>

+ 4 - 4
desktop/core/src/desktop/templates/responsive.mako

@@ -243,8 +243,8 @@ ${ hueIcons.symbols() }
     </div>
 
     <div class="left-panel" data-bind="css: { 'side-panel-closed': !leftAssistVisible() }">
-      <a href="javascript:void(0);" style="z-index: 1000;" title="${_('Show Assist')}" class="pointer side-panel-toggle show-left-side-panel" data-bind="visible: ! leftAssistVisible(), toggle: leftAssistVisible"><i class="fa fa-chevron-right"></i></a>
-      <a href="javascript:void(0);" title="${_('Hide Assist')}" class="pointer side-panel-toggle hide-left-side-panel" data-bind="visible: leftAssistVisible, toggle: leftAssistVisible"><i class="fa fa-chevron-left"></i></a>
+      <a href="javascript:void(0);" style="z-index: 1000; display: none;" title="${_('Show Assist')}" class="pointer side-panel-toggle show-left-side-panel" data-bind="visible: ! leftAssistVisible(), toggle: leftAssistVisible"><i class="fa fa-chevron-right"></i></a>
+      <a href="javascript:void(0);" style="display: none;" title="${_('Hide Assist')}" class="pointer side-panel-toggle hide-left-side-panel" data-bind="visible: leftAssistVisible, toggle: leftAssistVisible"><i class="fa fa-chevron-left"></i></a>
       <!-- ko if: leftAssistVisible -->
       <div class="assist" data-bind="component: {
           name: 'assist-panel',
@@ -296,8 +296,8 @@ ${ hueIcons.symbols() }
     }"><div class="resize-bar">&nbsp;</div></div>
 
     <div class="right-panel" data-bind="css: { 'side-panel-closed': !rightAssistVisible() }">
-      <a href="javascript:void(0);" style="z-index: 1000;" title="${_('Show Assist')}" class="pointer side-panel-toggle show-right-side-panel" data-bind="visible: ! rightAssistVisible(), toggle: rightAssistVisible"><i class="fa fa-chevron-left"></i></a>
-      <a href="javascript:void(0);" title="${_('Hide Assist')}" class="pointer side-panel-toggle hide-right-side-panel" data-bind="visible: rightAssistVisible, toggle: rightAssistVisible"><i class="fa fa-chevron-right"></i></a>
+      <a href="javascript:void(0);" style="z-index: 1000; display: none;" title="${_('Show Assist')}" class="pointer side-panel-toggle show-right-side-panel" data-bind="visible: ! rightAssistVisible(), toggle: rightAssistVisible"><i class="fa fa-chevron-left"></i></a>
+      <a href="javascript:void(0);" style="display: none;" title="${_('Hide Assist')}" class="pointer side-panel-toggle hide-right-side-panel" data-bind="visible: rightAssistVisible, toggle: rightAssistVisible"><i class="fa fa-chevron-right"></i></a>
     </div>
   </div>
 </div>

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/css/notebook-layout.css

@@ -36,7 +36,7 @@ body {
   height: auto;
   width: 100%;
   position: absolute;
-  top: 82px;
+  top: 74px;
   bottom: 0;
   background-color: #FFF;
 }

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

@@ -3570,7 +3570,7 @@ ${ hueIcons.symbols() }
           % if conf.CUSTOM.BANNER_TOP_HTML.get():
           $(".main-content").css("top", "112px");
           % else:
-          $(".main-content").css("top", "82px");
+          $(".main-content").css("top", "74px");
           % endif
           redrawFixedHeaders(200);
           $(window).unbind("keydown", exitPlayerMode);