From c04a6284162486621e3e5c2bbd22430f519a0c26 Mon Sep 17 00:00:00 2001 From: Matias Ezequiel Moreno Date: Thu, 22 Sep 2022 12:41:07 -0300 Subject: [PATCH] Modify agent overview page (#4516) * layout structures are modified * change styles to fix window * Fix visual errors * Change structure * Update changelog * Fix Changelog * Update CHANGELOG.md Co-authored-by: Nico Guevara Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com> Co-authored-by: Alex Ruiz Becerra (cherry picked from commit 309227bb5f1c2e2abb6c7cc2bfbf7377e33622f1) --- CHANGELOG.md | 1 + public/components/common/modules/module.scss | 33 +++++++++++---- .../common/welcome/agents-welcome.js | 41 +++++++++++-------- 3 files changed, 50 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fcb9ac2fb..64ebf795e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ All notable changes to the Wazuh app project will be documented in this file. - Fixed nested fields filtering in dashboards tables and KPIs [#4425](https://github.com/wazuh/wazuh-kibana-app/pull/4425) - Fixed nested field rendering in security alerts table details [#4428](https://github.com/wazuh/wazuh-kibana-app/pull/4428) - Fixed a bug where the Wazuh logo was used instead of the custom one [#4539](https://github.com/wazuh/wazuh-kibana-app/pull/4539) +- Fixed rendering problems of the `Agent Overview` section in low resolutions [#4516](https://github.com/wazuh/wazuh-kibana-app/pull/4516) ## Wazuh v4.3.8 - OpenSearch Dashboards 1.2.0 - Revision 4309 diff --git a/public/components/common/modules/module.scss b/public/components/common/modules/module.scss index 4587782af8..8147faf135 100644 --- a/public/components/common/modules/module.scss +++ b/public/components/common/modules/module.scss @@ -78,8 +78,13 @@ padding-top: 105px; } -.wz-module.wz-module-welcome .wz-module-body{ - padding-top: 109px !important; +.wz-module.wz-module-welcome{ + .wz-module-agent-body{ + padding-top: 50px !important; + } + .wz-module-body{ + padding-top: 109px !important; + } } .wz-module.wz-module-showing-agent .wz-module-body{ @@ -111,19 +116,23 @@ discover-app-w .sidebar-container { padding-top: 189px !important; } @media only screen and (max-width: 767px){ - .wz-module-header-agent h1{ - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; + .wz-module.wz-module-welcome .wz-module-agent-body{ + padding-top: 0px !important; + } + .wz-module-header-agent{ + height: auto; + h1{ + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + } } - .wz-module-body { margin-top: -160px; } .wz-module-header-agent-wrapper, .wz-module-header-nav-wrapper{ position: relative; - padding-left: 0px; } .wz-module-header-nav-wrapper{ @@ -137,5 +146,13 @@ discover-app-w .sidebar-container { .wz-module-body-agent-info > .euiFlexGroup > .euiFlexItem { max-width: unset!important; } + + .wz-module-header-agent-title .euiFlexItem{ + align-items: flex-start!important; + } + .wz-agent-empty-item .euiFlexItem{ + margin-top: 0px!important; + margin-bottom:0px!important; + } } } diff --git a/public/components/common/welcome/agents-welcome.js b/public/components/common/welcome/agents-welcome.js index c60254d341..104c58b686 100644 --- a/public/components/common/welcome/agents-welcome.js +++ b/public/components/common/welcome/agents-welcome.js @@ -267,9 +267,17 @@ class AgentsWelcome extends Component {

- + {this.state.widthWindow >= 768?( + {this.props.agent.name} - + + ): + ( + + {this.props.agent.name} + + ) + }

@@ -308,7 +316,9 @@ class AgentsWelcome extends Component { } +
+
-
-
+
+
{title}
-
-
-
-
- - - -
-
-
-
-
+
+ +
+
+ + + +
+
- {/* DatePicker */} + {/* DatePicker */} { }} />