From d5d3d3ecfa9a2cdb08a073edec705cb8941b48eb Mon Sep 17 00:00:00 2001 From: ulleo Date: Mon, 3 Mar 2025 17:54:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E6=8F=90=E7=A4=BA=E5=90=8D=E7=A7=B0=E8=BF=87?= =?UTF-8?q?=E9=95=BF=E5=AF=BC=E8=87=B4=E5=B1=95=E7=A4=BA=E9=94=99=E4=BD=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20#14639?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_antv.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 0ea4b97005..6dcc62672b 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -137,14 +137,20 @@ export function getTheme(chart: Chart) { }, 'g2-tooltip-list-item': { display: 'flex', - 'align-items': 'center' + 'align-items': 'flex-start', + 'line-height': tooltipFontsize + 'px' }, 'g2-tooltip-name': { display: 'inline-block', 'line-height': tooltipFontsize + 'px', flex: 1 }, + 'g2-tooltip-value': { + display: 'inline-block', + 'line-height': tooltipFontsize + 'px' + }, 'g2-tooltip-marker': { + 'margin-top': (tooltipFontsize - 8) / 2 + 'px', 'min-width': '8px', 'min-height': '8px' }