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; +}