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 d3f3f6c525..ee5c53a0bb 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -568,11 +568,25 @@ function onTitleChange() { const toolTip = computed(() => { return props.themes === 'dark' ? 'ndark' : 'dark' }) + +const marginBottom = computed(() => { + if (titleShow.value || trackMenu.value.length > 0 || state.title_remark.show) { + return 8 * scale.value + 'px' + } + return 0 +}) + +const iconSize = computed(() => { + return 16 * scale.value + 'px' +})