瀏覽代碼

HUE-6077 [frontend] More padding for the create button

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

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


文件差異過大導致無法顯示
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 11 - 10
desktop/core/src/desktop/static/desktop/less/hue-assist.less

@@ -42,16 +42,17 @@
   margin-top: 16px;
   border-bottom: 1px solid @cui-default-border-color;
   padding-left: 14px;
-}
-
-.right-panel-tabs > li > a {
-  font-size: 13px;
-  padding: 6px 5px 8px 5px;
-  margin-bottom: 0;
-}
-
-.right-panel-tabs > li.active > a {
-  padding: 6px 5px 8px 5px;
+  text-align: center;
+  & > li {
+    & > a {
+      font-size: 13px;
+      padding: 6px 5px 8px 5px;
+      margin-bottom: 0;
+    }
+  }
+  & > li.active > a {
+    padding: 6px 5px 8px 5px;
+  }
 }
 
 .right-panel-tab-content {

+ 6 - 1
desktop/core/src/desktop/static/desktop/less/hue.less

@@ -98,6 +98,11 @@ body {
   margin-right: 2px;
 }
 
+.hue-main-create-btn {
+  padding-left: 26px;
+  padding-right: 26px;
+}
+
 .jobs-panel {
   position: fixed;
   z-index: 2999;
@@ -297,7 +302,7 @@ body {
 .resize-bar {
   position: absolute;
   height: 100%;
-  width: 2px;
+  width: 1px;
   background-color: @cui-gray-300;
 }
 

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

@@ -114,7 +114,7 @@ ${ hueIcons.symbols() }
         <div class="btn-group" data-bind="visible: true" style="display:none;">
           <!-- ko if: mainQuickCreateAction -->
           <!-- ko with: mainQuickCreateAction -->
-          <button class="btn btn-primary disable-feedback" href="javascript: void(0);" data-bind="click: click, attr: {title: tooltip}">
+          <button class="btn btn-primary disable-feedback hue-main-create-btn" href="javascript: void(0);" data-bind="click: click, attr: {title: tooltip}">
             <span data-bind="text: displayName"></span>
           </button>
           <!-- /ko -->
@@ -258,7 +258,7 @@ ${ hueIcons.symbols() }
       sidePanelVisible: leftAssistVisible,
       orientation: 'left',
       onPosition: function() { huePubSub.publish('split.draggable.position') }
-    }"><div class="resize-bar">&nbsp;</div></div>
+    }"><div class="resize-bar"></div></div>
 
 
     <div class="page-content" data-bind="niceScroll: {horizrailenabled: false}">

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