This is an automated email from the ASF dual-hosted git repository.
tobiasistvan 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 2e64484 [AMBARI-24439] [Log Search UI] center the log tabs so they're
aligned with the buttons (#2056)
2e64484 is described below
commit 2e64484a1b7f7be20dab1d25924f6aa368012d1d
Author: Istvan Tobias <[email protected]>
AuthorDate: Tue Aug 14 16:23:24 2018 +0200
[AMBARI-24439] [Log Search UI] center the log tabs so they're aligned with
the buttons (#2056)
---
.../src/app/components/action-menu/action-menu.component.less | 1 -
.../app/components/logs-container/logs-container.component.html | 4 ++--
.../app/components/logs-container/logs-container.component.less | 7 +++++++
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git
a/ambari-logsearch/ambari-logsearch-web/src/app/components/action-menu/action-menu.component.less
b/ambari-logsearch/ambari-logsearch-web/src/app/components/action-menu/action-menu.component.less
index 66648bb..090b544 100644
---
a/ambari-logsearch/ambari-logsearch-web/src/app/components/action-menu/action-menu.component.less
+++
b/ambari-logsearch/ambari-logsearch-web/src/app/components/action-menu/action-menu.component.less
@@ -19,7 +19,6 @@
:host {
display: block;
- margin-left: auto;
menu-button {
margin: 0 1em;
/deep/ .stop-icon {
diff --git
a/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.html
b/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.html
index 0c130fa..7d0bb62 100644
---
a/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.html
+++
b/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.html
@@ -18,10 +18,10 @@
<div class="tabs-container container-fluid">
<div class="row">
<div class="col-md-12 tabs-menu-container">
- <tabs class="pull-left" [items]="tabs | async"
(tabSwitched)="onSwitchTab($event)"
+ <tabs [items]="tabs | async" (tabSwitched)="onSwitchTab($event)"
(tabClosed)="onCloseTab($event[0], $event[1])"
[switchMode]="'ROUTE_SEGMENT'" [basePathForRoutingMode]="routerPath"
queryParamsHandling="merge"></tabs>
- <action-menu class="pull-right"></action-menu>
+ <action-menu></action-menu>
</div>
</div>
</div>
diff --git
a/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.less
b/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.less
index 9ce88b0..5056003 100644
---
a/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.less
+++
b/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.less
@@ -28,6 +28,13 @@
border-bottom: 1px solid @table-border-color;
.tabs-menu-container {
.flex-vertical-align;
+ height: 62px;
+ action-menu {
+ margin-left: auto;
+ }
+ /deep/ tabs ul.nav.nav-tabs {
+ margin: 0;
+ }
}
}