Skip to content

Commit

Permalink
Hide Wazuh breadcrumb label and Wazuh api selector css fix (#3347)
Browse files Browse the repository at this point in the history
* Change css breadcrumb selector + Wazuh api selector css fix
  • Loading branch information
asteriscos authored Jun 10, 2021
1 parent 5c9d117 commit 0c8f68a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixed error agent view does not render correctly [#3306](https://github.com/wazuh/wazuh-kibana-app/pull/3306)
- Fixed miscalculation in table column width in PDF reports [#3326](https://github.com/wazuh/wazuh-kibana-app/pull/3326)
- Normalized visData table property for 7.12 retro-compatibility [#3323](https://github.com/wazuh/wazuh-kibana-app/pull/3323)
- Fixed Wazuh main menu and breadcrumb render issues [#3347](https://github.com/wazuh/wazuh-kibana-app/pull/3347)

## Wazuh v4.2.0 - Kibana 7.10.2 , 7.11.2 - Revision 4201

Expand Down
9 changes: 9 additions & 0 deletions public/styles/component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,13 @@

kbn-dis doc-table .kbnDocViewer__warning {
display: none;
}

/* Custom Breadcrumb styles*/
.header__breadcrumbsWithExtensionContainer .euiHeaderBreadcrumbs {
flex-grow: 1;
margin-right: 12px;
}
.header__breadcrumbsWithExtensionContainer .header__breadcrumbsAppendExtension {
flex-grow: 0;
}
6 changes: 3 additions & 3 deletions public/utils/wz-logo-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
// Remove Kibana Wazuh name and breadcrumb
export const changeWazuhNavLogo = () => {
const interval = setInterval(() => {
const nav = $('.euiHeader > .euiBreadcrumbs > .euiBreadcrumb');
if (nav.length) {
const nav = document.querySelector('[data-test-subj="breadcrumbs"] > .euiBreadcrumb');
if (nav) {
clearInterval(interval);
nav.style.display = 'none';
}
nav.hide();
}, 200);
};

0 comments on commit 0c8f68a

Please sign in to comment.