From ef4cd3c50adbb8d76269ddaf00ea35d3a9ec4920 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Mon, 25 May 2020 13:07:16 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BC=98=E5=8C=96assetInfo=20char?= =?UTF-8?q?t=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/charts/chart-asset-info.scss | 7 +-- .../components/charts/chart-asset-info.vue | 27 ++++++---- .../src/components/charts/chart-list.vue | 51 +++---------------- .../components/charts/chart-single-stat.vue | 11 ++++ .../src/components/common/language/en.js | 2 +- 5 files changed, 42 insertions(+), 56 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-asset-info.scss b/nezha-fronted/src/components/charts/chart-asset-info.scss index 849eb50ae..ad204af33 100644 --- a/nezha-fronted/src/components/charts/chart-asset-info.scss +++ b/nezha-fronted/src/components/charts/chart-asset-info.scss @@ -32,7 +32,6 @@ .chart-info-container{ padding-left: 8px; padding-right: 8px; - display:table; text-align:center; width:calc(100% - 16px); .single-stat-content{ @@ -159,6 +158,7 @@ .asset-info-content{ width: 100%; height: 100%; + font-size: 12px; .basic-container,.feature-container{ width: 100%; //height: calc(50% - 4px); @@ -173,6 +173,7 @@ flex-wrap:nowrap; padding: 0 5px 0 5px; box-sizing: border-box; + font-size: 16px; } .basic-container .basic-title:hover,.feature-container .feature-title:hover{ border: 1px solid #C0C4CC; @@ -194,10 +195,10 @@ } .content-item{ width: 100%; - white-space:nowrap; overflow:hidden; text-overflow:ellipsis; position: relative; + border-bottom: 1px solid #EBEEF5; .content-item-key{ display: inline-block; //height: 25px; @@ -219,7 +220,7 @@ } } - .content-item:hover{ + .hover-bg:hover{ background-color: #F2F2F2; } } diff --git a/nezha-fronted/src/components/charts/chart-asset-info.vue b/nezha-fronted/src/components/charts/chart-asset-info.vue index 146ba6962..61f05d291 100644 --- a/nezha-fronted/src/components/charts/chart-asset-info.vue +++ b/nezha-fronted/src/components/charts/chart-asset-info.vue @@ -15,21 +15,21 @@ - {{data.title}} + {{$t('asset.createAssetTab.assetInfo')}}
- +
-
{{$t('asset.basicTitle')}}
+
{{$t('asset.createAssetTab.basicTitle')}}