From 2b4fecb8eb22a528fc3e966784109dfaf375a2b3 Mon Sep 17 00:00:00 2001 From: ulleo Date: Mon, 21 Apr 2025 14:45:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=8F=90=E7=A4=BA=E6=A1=86=E5=86=85=E7=9A=84?= =?UTF-8?q?=E5=86=92=E5=8F=B7=E6=98=BE=E7=A4=BA=E4=BD=8D=E7=BD=AE=20#15883?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_antv.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 2b1447f346..de97604092 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 @@ -152,15 +152,17 @@ export function getTheme(chart: Chart) { 'g2-tooltip-list-item': { display: 'flex', 'align-items': 'flex-start', + 'justify-content': 'space-between', 'line-height': tooltipFontsize + 'px' }, 'g2-tooltip-name': { display: 'inline-block', - 'line-height': tooltipFontsize + 'px', - flex: 1 + 'line-height': tooltipFontsize + 'px' }, 'g2-tooltip-value': { + flex: 1, display: 'inline-block', + 'text-align': 'end', 'line-height': tooltipFontsize + 'px' }, 'g2-tooltip-marker': {