From b48b3bcb6ace2881156f4947b2b30830eb3fd3ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lud=C4=9Bk=20Nov=C3=BD?= <13610612+ludeknovy@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:30:06 +0200 Subject: [PATCH] Refactor monitoring stats layout and initialization Replaced modal-based layout with a card-based layout in monitoring-stats.component.html to improve UI consistency. Added OnInit interface to MonitoringStatsComponent for better chart initialization. Removed redundant component placements and adjusted CSS styles for better spacing. --- .../item-detail/item-detail.component.html | 17 ++++++++-- .../monitoring-stats.component.css | 5 +++ .../monitoring-stats.component.html | 31 +++++++++---------- .../monitoring-stats.component.ts | 11 ++++--- 4 files changed, 40 insertions(+), 24 deletions(-) diff --git a/src/app/item-detail/item-detail.component.html b/src/app/item-detail/item-detail.component.html index 739f1edb..abb9f1ef 100644 --- a/src/app/item-detail/item-detail.component.html +++ b/src/app/item-detail/item-detail.component.html @@ -337,8 +337,6 @@
Summary
Max CPU usage
{{itemData.monitoring.cpu.max}}% - -
@@ -419,6 +417,8 @@
Status Codes Chart
+ +
@@ -515,6 +515,19 @@
Target System Statistics + Monitoring + +
+
+ + +
+
+ +
+ +
diff --git a/src/app/item-detail/monitoring-stats/monitoring-stats.component.css b/src/app/item-detail/monitoring-stats/monitoring-stats.component.css index 5e76fd30..db9e4665 100644 --- a/src/app/item-detail/monitoring-stats/monitoring-stats.component.css +++ b/src/app/item-detail/monitoring-stats/monitoring-stats.component.css @@ -11,3 +11,8 @@ .monitoring-data:hover { color: #105196 } + + +.card { + margin-top: 20px; +} diff --git a/src/app/item-detail/monitoring-stats/monitoring-stats.component.html b/src/app/item-detail/monitoring-stats/monitoring-stats.component.html index 17f6812b..df506f4b 100644 --- a/src/app/item-detail/monitoring-stats/monitoring-stats.component.html +++ b/src/app/item-detail/monitoring-stats/monitoring-stats.component.html @@ -1,19 +1,16 @@ - - -