diff --git a/pvc-vue/src/App.vue b/pvc-vue/src/App.vue index 38026b2..a2dca4a 100644 --- a/pvc-vue/src/App.vue +++ b/pvc-vue/src/App.vue @@ -240,11 +240,11 @@ onUnmounted(() => { display: grid; gap: 1rem; grid-template-columns: 2fr 3fr; - min-height: 500px; } .overview-row > * { height: 100%; + min-height: 400px; } @media (max-width: 1200px) { diff --git a/pvc-vue/src/components/ClusterOverview.vue b/pvc-vue/src/components/ClusterOverview.vue index 8876b8d..2503346 100644 --- a/pvc-vue/src/components/ClusterOverview.vue +++ b/pvc-vue/src/components/ClusterOverview.vue @@ -10,32 +10,32 @@
Cluster Health
+
+

+ {{ clusterData.cluster_health?.health || 0 }}% +

+
-
-
-

- {{ clusterData.cluster_health?.health || 0 }}% -

-
- -
- - No issues detected +
+
+ +
+ + No issues detected
@@ -171,7 +171,8 @@ const healthChartData = computed(() => { borderColor: colors.border, borderWidth: 1.5, tension: 0.4, - pointRadius: 0 + pointRadius: 2, + pointBackgroundColor: colors.border }] }; }); @@ -188,22 +189,23 @@ const healthChartOptions = { x: { display: false, grid: { - display: false - } + display: false, + }, }, y: { display: false, grid: { - display: false + display: false, }, min: 0, max: 100, - beginAtZero: true } }, animation: false, interaction: { - enabled: false + enabled: true, + mode: 'nearest', + intersect: false } }; @@ -224,43 +226,29 @@ const healthChartOptions = { } .health-content { - position: relative; - height: 250px; + display: flex; + flex-direction: column; + gap: 1rem; + min-height: 300px; + height: auto; width: 100%; } .health-graph { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 1; + position: relative; + height: 200px; } -.health-overlay { +.health-percentage { position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - display: flex; - align-items: center; - justify-content: center; - z-index: 2; -} - -.health-status { - text-align: center; - padding: 1rem; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.9); + padding: 1rem; border-radius: 0.5rem; - display: flex; - flex-direction: column; - gap: 1rem; - min-width: 300px; - max-width: 400px; box-shadow: 0 0 10px rgba(0,0,0,0.05); + z-index: 2; } .health-title { @@ -270,14 +258,16 @@ const healthChartOptions = { } .health-messages { - display: flex; - flex-direction: column; - gap: 0.5rem; - max-height: 100px; - overflow-y: auto; - background: rgba(255, 255, 255, 0.95); + padding: 1rem; + background: rgba(0, 0, 0, 0.02); border-radius: 0.25rem; - padding: 0.5rem; + flex-grow: 1; +} + +.messages-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 0.5rem; } .health-message { @@ -291,6 +281,7 @@ const healthChartOptions = { overflow: hidden; text-overflow: ellipsis; position: relative; + height: fit-content; } .health-message.healthy {