From e2edbef3dfe5633c1d8a1fafe2ae2e9f4c0e5739 Mon Sep 17 00:00:00 2001 From: Mia ZHOU Date: Wed, 8 Aug 2018 10:22:07 +0800 Subject: [PATCH] Refine helm chart card view Changes including: 1 chart list view will have icon which from the latest version. 2 Card View will change to the option2 (large icon). 3 version list will also have icons inside the data grid. --- .../src/helm-chart/helm-chart.component.html | 21 +++---- .../src/helm-chart/helm-chart.component.scss | 57 +++++++++--------- .../helm-chart-version.component.html | 8 +-- .../helm-chart-version.component.scss | 12 ++-- src/ui_ng/lib/src/shared/shared.const.ts | 2 +- src/ui_ng/src/images/helm-gray.png | Bin 0 -> 6491 bytes src/ui_ng/src/images/helm-logo.svg | 1 - 7 files changed, 48 insertions(+), 53 deletions(-) create mode 100644 src/ui_ng/src/images/helm-gray.png delete mode 100644 src/ui_ng/src/images/helm-logo.svg diff --git a/src/ui_ng/lib/src/helm-chart/helm-chart.component.html b/src/ui_ng/lib/src/helm-chart/helm-chart.component.html index a1aa64780..f9b0028a5 100644 --- a/src/ui_ng/lib/src/helm-chart/helm-chart.component.html +++ b/src/ui_ng/lib/src/helm-chart/helm-chart.component.html @@ -51,24 +51,19 @@
-
+
-
-
- {{item.name}} -

{{item.home}}

-
+
+
+
{{item.name}}
-
+ diff --git a/src/ui_ng/lib/src/helm-chart/helm-chart.component.scss b/src/ui_ng/lib/src/helm-chart/helm-chart.component.scss index b28effd7f..e06eee2c1 100644 --- a/src/ui_ng/lib/src/helm-chart/helm-chart.component.scss +++ b/src/ui_ng/lib/src/helm-chart/helm-chart.component.scss @@ -1,6 +1,12 @@ @import "../mixin"; -$width:24px; -$height:$width; +$size24:24px; +$size60:60px; + +@mixin flex-center { + display: flex; + justify-content: center; + align-items: center; +} .chart-tool { position: relative; .toolbar { @@ -11,7 +17,7 @@ $height:$width; display: inline-block; height: 16px; width: 2px; - background-color: #cccccc; + background-color: #ccc; padding-top: 12px; padding-bottom: 12px; position: relative; @@ -26,32 +32,20 @@ $height:$width; .card-container { margin-top: 21px; .card-header { - .card-media-block { - .card-media-description { - height: 45px; - p { - margin-top: 0; - } - .card-media-title { - overflow: hidden; - height: 24px; - } - .card-media-text { - overflow: hidden; - height: 21px - } - } + .card-icon { + @include flex-center; + } + .card-title { + @include text-overflow; + text-align:center; + margin:15px; } } - .card-block { - margin-top: 24px; - min-height: 100px; - .form-group { - display: flex; - label { - width: 100px; - } - } + .card-footer { + background-color:#d7d7d7; + .version-text { + font-size:1.1rem; + } } } @@ -62,8 +56,13 @@ $height:$width; } .size-24 { - width:$width; - height:$height; + width:$size24; + height:$size24; +} + +.size-60 { + height:$size60; + max-width:165px; } .margin-right-12 { diff --git a/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.html b/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.html index 20ffe83c9..ae7b4039e 100644 --- a/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.html +++ b/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.html @@ -82,21 +82,21 @@
{{item.name}} -

{{item.home}}

+ {{item.home}}
- +
{{item.engine}}
- +
{{getMaintainerString(item.maintainers)}}
- +
{{item.appVersion}}
diff --git a/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.scss b/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.scss index cf2aae7d6..596b68a1f 100644 --- a/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.scss +++ b/src/ui_ng/lib/src/helm-chart/versions/helm-chart-version.component.scss @@ -42,28 +42,30 @@ width: 45px; } .card-media-description { + width:80%; height: 45px; - p { - margin-top: 0; - } .card-media-title { overflow: hidden; height: 24px; } .card-media-text { - overflow: hidden; - height: 21px + font-size:0.8em; + color:#007cbb; + @include text-overflow; + height: 20px; } } } } .card-block { + font-size:0.9em; margin-top: 24px; min-height: 100px; .form-group { display: flex; label { width: 100px; + color:#aaa; } } margin-top: 0px; diff --git a/src/ui_ng/lib/src/shared/shared.const.ts b/src/ui_ng/lib/src/shared/shared.const.ts index 284856ab2..c2c0d3750 100644 --- a/src/ui_ng/lib/src/shared/shared.const.ts +++ b/src/ui_ng/lib/src/shared/shared.const.ts @@ -91,4 +91,4 @@ export const LabelColor = [ export const RoleMapping = { 'projectAdmin': 'MEMBER.PROJECT_ADMIN', 'developer': 'MEMBER.DEVELOPER', 'guest': 'MEMBER.GUEST' }; -export const DefaultHelmIcon = '/static/images/helm-logo.svg'; +export const DefaultHelmIcon = '/static/images/helm-gray.png'; diff --git a/src/ui_ng/src/images/helm-gray.png b/src/ui_ng/src/images/helm-gray.png new file mode 100644 index 0000000000000000000000000000000000000000..578f5f8ebfe26c8a9b941a4b164551d9e7c4343a GIT binary patch literal 6491 zcmY*;2Q-}D*8XVGiQa3X4F;pdsH685oe(XEK1LWuOF|I6iyFPR5Ya`5QNke6YxJn2 zi}v~5d;j1 ziMcOvouE2U0H8je_}UilzRzy2Zm0tQ1aJcYp>F|zzxPn+769NY3;_Ij4gf$h0026# z>{bIA007I}#mEe9rlSq9_jCu@I(XVSg8bdR?lk}a8Gp!q)7=qn%kJ;)=HUbJm*xDI z1mwQ`4=lvV{x1=@t1PFPjy}7RC(Myu93%!3=9D91XJ?mzIlO=vDy#lS{k|v5=?sT^ zL4<_-{QN+Eq99M0laPp%l$4M#SO^Rjyq6I4L3qGz{RKUI9{t5pMQ@N?(*XQGkN&@$E|w@h5q>>Bmxo^`mgPKRhfTKh#t(v z@t*k~`*I>O|C0Pa*nfCrg#ID_UxWF#r~g9lU6mt}5&G}6$q{My@R;9Ec9@1T)W{!e zFNZLLrmv}=A;We$(HQq_SQ&lqXufik9yWbi_rpR}%Ht#+5?6Wxb_00>DiM(==hrBS z*KYgtxds$(IM@}H@sJO#3G~A2!u#sB>&S72uW~SpmjU}mrl%dvl};X`KhJ;d?N>ZC z-pmfEF0HsSsWcgwpKtMzmOUO8-2*01yQHd2Yb0|QH@i;l^R2O%7#YEdLTq$(M?_Ph zw|`Qh>WLJgYCZ#fQ`%ZuZ3OZ`Uti-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UF)b2SSge^CY~BB(_9rFzSlznxQ!xWoUp#!9j<)y3vdK8Kw34XK!!)f;6dV96AOKT zC2-3cuB#B>84VLY`6bCS6YcCtg%@F6G`1V7#Fz%I3)b6LFHe?H{d#uyr$xhcwr(uw zpPvoCa87(wdKcXDKvNzLj&RQWl)ZXOEhAG7uHbEmltwY48aC`F11Y->7Hk?CO zZ=VbYY>Nh%2}^P{-G_|FQSyUi4AlV}iI3E3N*(=dJz#=EjeJp?WqK|?gvO-#Li+8y zS7}*=;ndiTpOF!?uG}imz9ts-XZeZ+_ih)T7rup!yvbcl!KZb2LRd{Kiz1Mq%>x^c#>7*atdWqf1{DL$L%&r)l7|FBX)OQJ xUF6wmUJJ+Mn*?ND=tb-9vJF}L6?@;2Ysl5@7%8Uw{^wppLq%7)M)CRU{{ajbL%sk2 literal 0 HcmV?d00001 diff --git a/src/ui_ng/src/images/helm-logo.svg b/src/ui_ng/src/images/helm-logo.svg deleted file mode 100644 index 6014e6d04..000000000 --- a/src/ui_ng/src/images/helm-logo.svg +++ /dev/null @@ -1 +0,0 @@ -helm-logo \ No newline at end of file