From 76cbe3b5d229601c5796d57ff69a6880d12c2c2c Mon Sep 17 00:00:00 2001 From: pfh Date: Thu, 31 May 2018 14:30:57 +0800 Subject: [PATCH] Modify tag detail alert when without clarity --- .../lib/src/tag/tag-detail.component.html | 26 +++++-------------- .../lib/src/tag/tag-detail.component.scss | 11 +++----- src/ui_ng/lib/src/tag/tag.component.html | 3 ++- src/ui_ng/package.json | 2 +- 4 files changed, 13 insertions(+), 29 deletions(-) diff --git a/src/ui_ng/lib/src/tag/tag-detail.component.html b/src/ui_ng/lib/src/tag/tag-detail.component.html index 1ae3782c3..2ce7f05c1 100644 --- a/src/ui_ng/lib/src/tag/tag-detail.component.html +++ b/src/ui_ng/lib/src/tag/tag-detail.component.html @@ -9,7 +9,7 @@
-
+
{{'TAG.AUTHOR' | translate }}
@@ -27,30 +27,16 @@
-
+
-
-
- -
-
- -
-
- -
-
- -
-
-
{{highCount}} {{'VULNERABILITY.SEVERITY.HIGH' | translate }}{{'TAG.LEVEL_VULNERABILITIES' | translate }}
-
{{mediumCount}} {{'VULNERABILITY.SEVERITY.MEDIUM' | translate }}{{'TAG.LEVEL_VULNERABILITIES' | translate }}
-
{{lowCount}} {{'VULNERABILITY.SEVERITY.LOW' | translate }}{{'TAG.LEVEL_VULNERABILITIES' | translate }}
-
{{unknownCount}} {{'VULNERABILITY.SEVERITY.UNKNOWN' | translate }}{{'TAG.LEVEL_VULNERABILITIES' | translate }}
+
{{highCount}} {{'VULNERABILITY.SEVERITY.HIGH' | translate }} {{'TAG.LEVEL_VULNERABILITIES' | translate }}
+
{{mediumCount}} {{'VULNERABILITY.SEVERITY.MEDIUM' | translate }} {{'TAG.LEVEL_VULNERABILITIES' | translate }}
+
{{lowCount}} {{'VULNERABILITY.SEVERITY.LOW' | translate }} {{'TAG.LEVEL_VULNERABILITIES' | translate }}
+
{{unknownCount}} {{'VULNERABILITY.SEVERITY.UNKNOWN' | translate }} {{'TAG.LEVEL_VULNERABILITIES' | translate }}
diff --git a/src/ui_ng/lib/src/tag/tag-detail.component.scss b/src/ui_ng/lib/src/tag/tag-detail.component.scss index 1d6e71751..b1894a310 100644 --- a/src/ui_ng/lib/src/tag/tag-detail.component.scss +++ b/src/ui_ng/lib/src/tag/tag-detail.component.scss @@ -62,11 +62,6 @@ flex-wrap: row wrap; } -.image-summary { - margin-right: 36px; - margin-left: 18px; -} - .flex-block { display: inline-flex; flex-wrap: row wrap; @@ -121,6 +116,8 @@ margin-left:20px;} .tip-icon-low{ color:yellow; } -.second-column div, .fourth-column div, .image-detail-value div{ +.fourth-column div, .image-detail-value div{ height: 24px; -} \ No newline at end of file +} +.second-column div {padding-left: 30px;} +.second-column div clr-icon{margin-right: 10px; margin-left: -35px;} diff --git a/src/ui_ng/lib/src/tag/tag.component.html b/src/ui_ng/lib/src/tag/tag.component.html index d588ee365..e54e00cde 100644 --- a/src/ui_ng/lib/src/tag/tag.component.html +++ b/src/ui_ng/lib/src/tag/tag.component.html @@ -72,7 +72,8 @@ {{'TAG.PLACEHOLDER' | translate }} - {{t.name}} + {{t.name}} + {{t.name}} {{sizeTransform(t.size)}} diff --git a/src/ui_ng/package.json b/src/ui_ng/package.json index 1d9bd43bf..373e286a6 100644 --- a/src/ui_ng/package.json +++ b/src/ui_ng/package.json @@ -49,7 +49,7 @@ "bootstrap": "4.0.0-alpha.5", "codelyzer": "~2.0.0-beta.4", "enhanced-resolve": "^3.0.0", - "harbor-ui": "0.7.19-test-5", + "harbor-ui": "0.7.19-test-7", "jasmine-core": "2.4.1", "jasmine-spec-reporter": "2.5.0", "karma": "~1.7.0",