From 43fccefbc834e9b2059e7ad7703f89e8a4d1b0cd Mon Sep 17 00:00:00 2001 From: wenzhijie Date: Thu, 11 Aug 2022 13:51:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlenged=E6=A0=B7=E5=BC=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/chart/chart/chartTreemapD3.vue | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart/chartTreemapD3.vue b/nezha-fronted/src/components/chart/chart/chartTreemapD3.vue index a2f127c20..0fefc7517 100644 --- a/nezha-fronted/src/components/chart/chart/chartTreemapD3.vue +++ b/nezha-fronted/src/components/chart/chart/chartTreemapD3.vue @@ -1,20 +1,12 @@ @@ -377,13 +378,22 @@ export default { display: inline-block; flex-wrap: wrap; flex-direction: column; + height:20px !important; + line-height: 20px; + align-self: stretch; + -webkit-box-align: stretch; } .theme-light .legend-container{ - height:30px !important; - -ms-overflow-style: none; /* Internet Explorer 10+ */ + -ms-overflow-style: none; /* Internet Explorer 10+ */ scrollbar-width: none; /* Firefox */ } .container::-webkit-scrollbar { display: none; /* Safari and Chrome */ } + +.legends-flex{ + width: 100%; + max-height: 80px; + min-height: 25px; +}