From c00c9e9468ebc393939a119fc92ea9b5c7dad531 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Thu, 23 Jun 2022 15:34:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/serviceNameFn.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/widget/DeWidget/serviceNameFn.js b/frontend/src/components/widget/DeWidget/serviceNameFn.js index 739914c70f..bf932e5005 100644 --- a/frontend/src/components/widget/DeWidget/serviceNameFn.js +++ b/frontend/src/components/widget/DeWidget/serviceNameFn.js @@ -51,11 +51,13 @@ function textSelectWidget(nodeCache, style) { const textNode = item.querySelector('.el-select__tags-text'); const closeNode = item.querySelector('.el-tag__close'); textNode.style.width = '100%'; + item.style.position = 'relative'; textNode.style.padding = '0 20px 0 8px'; textNode.style.borderRadius = '3px'; if (closeNode) { closeNode.style.position = 'absolute'; - closeNode.style.top = '8px'; + closeNode.style.top = '60%'; + closeNode.style.transform = 'translateY(-50%)'; closeNode.style.right = '2px'; } styleAttrs.forEach((ele) => {