You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2018/04/25 16:46:07 UTC
[ambari] branch trunk updated: AMBARI-23686 HDFS metrics page: list
of namespaces is misaligned. (ababiichuk)
This is an automated email from the ASF dual-hosted git repository.
ababiichuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new a9c8b07 AMBARI-23686 HDFS metrics page: list of namespaces is misaligned. (ababiichuk)
a9c8b07 is described below
commit a9c8b07181811395abda05cd1ecb523a9ced45ee
Author: ababiichuk <ab...@hortonworks.com>
AuthorDate: Wed Apr 25 16:05:12 2018 +0300
AMBARI-23686 HDFS metrics page: list of namespaces is misaligned. (ababiichuk)
---
.../app/styles/enhanced_service_dashboard.less | 6 ++++++
.../app/templates/main/service/info/metrics.hbs | 23 +++++++++++++---------
2 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/ambari-web/app/styles/enhanced_service_dashboard.less b/ambari-web/app/styles/enhanced_service_dashboard.less
index 533ef3d..617d69a 100644
--- a/ambari-web/app/styles/enhanced_service_dashboard.less
+++ b/ambari-web/app/styles/enhanced_service_dashboard.less
@@ -25,6 +25,12 @@
clear: both;
+ .widgets-group-select-wrapper {
+ margin-left: 21px;
+ margin-top: 25px;
+ position: relative;
+ }
+
.service-widgets-box {
padding: 10px 1.1% 10px 1.1%;
}
diff --git a/ambari-web/app/templates/main/service/info/metrics.hbs b/ambari-web/app/templates/main/service/info/metrics.hbs
index 94139e2..97b93d5 100644
--- a/ambari-web/app/templates/main/service/info/metrics.hbs
+++ b/ambari-web/app/templates/main/service/info/metrics.hbs
@@ -98,16 +98,21 @@
</div>
{{#if controller.isHDFSFederatedSummary}}
{{#if controller.selectedNSWidgetLayout}}
- <div style="margin-left: 21px; margin-top: 25px; position: relative">
+ <div class="widgets-group-select-wrapper">
<h5 class="widgets-group-title">{{t dashboard.widgets.nameSpace}}</h5>
- <button type="button" style="min-width: 200px; text-align: left;" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
- {{controller.selectedNSWidgetLayout.displayName}} <span class="caret pull-right" style="position: relative; top: 6px;"></span>
- </button>
- <ul class="dropdown-menu">
- {{#each option in controller.activeNSWidgetLayouts}}
- <li><a href="#" {{action switchNameServiceLayout option target="controller"}}>{{option.displayName}}</a></li>
- {{/each}}
- </ul>
+ <div class="btn-group">
+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
+ {{controller.selectedNSWidgetLayout.displayName}}
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu">
+ {{#each option in controller.activeNSWidgetLayouts}}
+ <li>
+ <a href="#" {{action switchNameServiceLayout option target="controller"}}>{{option.displayName}}</a>
+ </li>
+ {{/each}}
+ </ul>
+ </div>
</div>
<div class="panel-body service-widgets-box">
<div id="ns_widget_layout" class="thumbnails">
--
To stop receiving notification emails like this one, please contact
ababiichuk@apache.org.