From ea4e7cc70b4de36a709b2a3f7a83d46dffc14d24 Mon Sep 17 00:00:00 2001 From: wood chen Date: Thu, 5 Dec 2024 11:21:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/handler/metrics.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/handler/metrics.go b/internal/handler/metrics.go index 7bba783..eb7937d 100644 --- a/internal/handler/metrics.go +++ b/internal/handler/metrics.go @@ -383,7 +383,8 @@ var metricsTemplate = ` display: flex; flex-wrap: wrap; gap: 15px; - justify-content: flex-start; + justify-content: space-between; + width: 100%; } .status-item { @@ -393,7 +394,9 @@ var metricsTemplate = ` background: white; padding: 10px; border-radius: 6px; + flex: 1; min-width: 80px; + max-width: 120px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } @@ -518,7 +521,7 @@ var metricsTemplate = `
-

状态统

+

状态码统计