From 2dffe2c902c50f82cdfeecf5af4a879bbced571d Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Fri, 18 Feb 2022 18:10:26 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=AF=A6=E6=83=85=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/entityExplorer/entityList/detail-overview.scss | 2 +- src/mixins/relatedServer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/css/components/views/entityExplorer/entityList/detail-overview.scss b/src/assets/css/components/views/entityExplorer/entityList/detail-overview.scss index 179062ad..50c78013 100644 --- a/src/assets/css/components/views/entityExplorer/entityList/detail-overview.scss +++ b/src/assets/css/components/views/entityExplorer/entityList/detail-overview.scss @@ -137,7 +137,7 @@ padding: 6px 15px; margin: 0 12px 0 0; text-align: center; - min-width: 210px; + white-space: nowrap; height: 32px; line-height: 1.5; background-color: #EFF6FE; diff --git a/src/mixins/relatedServer.js b/src/mixins/relatedServer.js index e0d86def..20787002 100644 --- a/src/mixins/relatedServer.js +++ b/src/mixins/relatedServer.js @@ -42,8 +42,8 @@ export default { data.map((item, index) => { if (this.$refs[value + index]) { // 每条数据的宽度 - const width = this.$refs[value + index].offsetWidth + 35 - if (width > 35 && width !== 0) { + const width = this.$refs[value + index].offsetWidth + 44 + if (width > 44 && width !== 0) { sum += width if (flag && sum >= relatedServerWidth && num === 1) { flag = false