You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2018/01/26 15:22:07 UTC
[ambari] 02/21: AMBARI-22796. Widget menu goes out of bounds.
review (alexantonenko)
This is an automated email from the ASF dual-hosted git repository.
ncole pushed a commit to branch branch-feature-AMBARI-21674
in repository https://gitbox.apache.org/repos/asf/ambari.git
commit 2de3299b4983e2574dc67616a08286431be742b4
Author: Alex Antonenko <aa...@hortonworks.com>
AuthorDate: Thu Jan 18 16:13:59 2018 +0300
AMBARI-22796. Widget menu goes out of bounds. review (alexantonenko)
---
ambari-web/app/styles/bootstrap_overrides.less | 4 ++--
ambari-web/app/styles/dashboard.less | 3 ---
ambari-web/app/templates/main/dashboard/widgets.hbs | 2 +-
3 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/ambari-web/app/styles/bootstrap_overrides.less b/ambari-web/app/styles/bootstrap_overrides.less
index 3637c6b..b9d29da 100644
--- a/ambari-web/app/styles/bootstrap_overrides.less
+++ b/ambari-web/app/styles/bootstrap_overrides.less
@@ -264,12 +264,12 @@ select.form-control {
}
.dropdown-submenu.pull-left {
- float: none;
+ float: none!important;
}
.dropdown-submenu.pull-left > .dropdown-menu {
left: -100%;
- margin-left: 10px;
+ margin-left: -12px;
}
.dropdown-submenu > a.disabled:after {
diff --git a/ambari-web/app/styles/dashboard.less b/ambari-web/app/styles/dashboard.less
index 20771b7..6deb30c 100644
--- a/ambari-web/app/styles/dashboard.less
+++ b/ambari-web/app/styles/dashboard.less
@@ -35,9 +35,6 @@
.add-widgets-text .dropdown-menu {
overflow: auto;
width: 210px;
- left: -100%;
- margin-left: -12px;
- top: 0;
}
.add-widgets-apply-button {
margin: 0px 20px 20px 0px;
diff --git a/ambari-web/app/templates/main/dashboard/widgets.hbs b/ambari-web/app/templates/main/dashboard/widgets.hbs
index 4b7a269..8334bbf 100644
--- a/ambari-web/app/templates/main/dashboard/widgets.hbs
+++ b/ambari-web/app/templates/main/dashboard/widgets.hbs
@@ -24,7 +24,7 @@
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
- <li class="add-widgets-text dropdown-submenu">
+ <li class="add-widgets-text dropdown-submenu pull-left">
<a href="javascript:void(null);"><i class="glyphicon glyphicon-plus"></i> {{t common.add}}</a>
{{view view.plusButtonFilterView}}
</li>
--
To stop receiving notification emails like this one, please contact
ncole@apache.org.