From 89236e82c2152a4530607cf3d8cbcf1cca010495 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Mon, 29 Sep 2025 14:51:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E4=B8=BA=E6=96=9C=E4=BD=93=E6=97=B6=E6=96=87?= =?UTF-8?q?=E5=AD=97=E9=83=A8=E5=88=86=E9=81=AE=E6=8C=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/views/index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index af53c3566f..4fc6754b69 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -181,7 +181,9 @@ const state = reactive({ width: 'fit-content', maxWidth: '100%', wordBreak: 'break-word', - whiteSpace: 'pre-wrap' + whiteSpace: 'pre-wrap', + paddingRight: '0px', + overflow: 'hidden' } as CSSProperties, drillFilters: [], viewInfoData: null, @@ -304,6 +306,14 @@ const initTitle = () => { CHART_FONT_FAMILY_MAP[ele.name] = ele.name }) } + if (customStyle.text.isItalic) { + if (customStyle.text.hPosition === 'right') { + state.title_class.paddingRight = Math.floor(customStyle.text.fontSize / 7) + 'px' + } else { + state.title_class.paddingRight = '0px' + state.title_class.overflow = 'visible' + } + } state.title_class.fontFamily = customStyle.text.fontFamily ? CHART_FONT_FAMILY_MAP[customStyle.text.fontFamily] : DEFAULT_TITLE_STYLE.fontFamily