فهرست منبع

HUE-6077 [frontend] Fix top navbar button alignment

Johan Ahlen 8 سال پیش
والد
کامیت
f095191

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


+ 3 - 2
desktop/core/src/desktop/static/desktop/less/hue.less

@@ -84,6 +84,7 @@ body {
 
 .top-nav-right {
   .flex(0 0 300px);
+  padding-right: 10px;
 }
 
 .jobs-panel {
@@ -161,12 +162,12 @@ body {
 .compose-action .btn:first-child {
   border-top-left-radius: 4px;
   border-bottom-left-radius: 4px;
-  padding-bottom: 2px;
+  padding-right: 2px;
   box-shadow: none;
 }
 
 .compose-action .btn:last-of-type:not(:first-child) {
-  padding-left: 1px;
+  padding-left: 4px;
 }
 
 .compose-action .btn:last-of-type {

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

@@ -160,7 +160,7 @@ from desktop.views import _ko
   </script>
 
   <script type="text/html" id="hue-history-panel-template">
-    <div class="compose-action btn-group">
+    <div class="compose-action btn-group  pull-right">
       <button class="btn" title="${_('Submission history')}" data-bind="toggle: historyPanelVisible"><i class="fa fa-history"></i>  <div class="jobs-badge">5</div></button>
     </div>
 
@@ -346,7 +346,7 @@ from desktop.views import _ko
   </script>
 
   <script type="text/html" id="hue-job-browser-panel-template">
-    <div class="compose-action btn-group">
+    <div class="compose-action btn-group pull-right">
       <button class="btn" title="${_('Running jobs and workflows')}" data-bind="click: function(){ onePageViewModel.currentApp('jobbrowser') }">${ _('Jobs') } <div id="jobBrowserCount" class="jobs-badge" data-bind="visible: jobCount() > 0, text: jobCount">0</div></button>
       <button class="btn dropdown-toggle" data-bind="toggle: jobsPanelVisible">
         <span class="caret"></span>

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

@@ -183,7 +183,7 @@ ${ hueIcons.symbols() }
 
       <div class="top-nav-right">
         % if user.is_authenticated() and section != 'login':
-        <div class="compose-action btn-group">
+        <div class="compose-action btn-group pull-right">
           <%
             view_profile = user.has_hue_permission(action="access_view:useradmin:edit_user", app="useradmin") or user.is_superuser
           %>

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است