From 4cec99264f8857f7870391f9bdc8a97fcab95b21 Mon Sep 17 00:00:00 2001 From: Gzx1999 Date: Thu, 16 Nov 2023 16:16:56 +0800 Subject: [PATCH] update message panel layout --- frontend/src/views/Overview/Overview.vue | 42 ++++++++++++++---------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/frontend/src/views/Overview/Overview.vue b/frontend/src/views/Overview/Overview.vue index 422ef07..b8e2c7b 100644 --- a/frontend/src/views/Overview/Overview.vue +++ b/frontend/src/views/Overview/Overview.vue @@ -33,10 +33,11 @@
-
+
+   + - - 消息提醒 +  消息提醒  
@@ -89,15 +90,15 @@ let tooltips = ref([ const messageNum = ref(0); const Message = ref([ - { - activeAt: "", - labels: { - alertname: "暂无", - }, - annotations: { - summary: "暂无", + { + activeAt: "", + labels: { + alertname: "暂无", + }, + annotations: { + summary: "暂无", + }, }, - }, ]); @@ -108,6 +109,8 @@ const Message = ref([ height: 100%; display: flex; flex-wrap: wrap; + justify-content: space-around; + align-items: center; .total { width: 48%; @@ -220,25 +223,30 @@ const Message = ref([ .recent { width: 48%; - height: 45%; + height: 40%; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.1); .message { - position: relative; - z-index: 2; - justify-content: start; + display: flex; + justify-content: flex-start; + align-items: flex-end; background-color: #fff; color: rgb(11, 35, 117); font-size: 16px; width: 100%; height: 13%; - // padding: 2.6%; box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.1); + + .message_icon { + height: 60%; + } } } .depart { - width: 100%; + width: 98%; height: 55%; + box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.1); } } \ No newline at end of file -- Gitee