From d878d9f91acc8b15307f2483cb0dcc4cd5f6e937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E4=BA=AE=E8=BE=89?= Date: Fri, 13 Oct 2023 17:51:51 +0800 Subject: [PATCH] =?UTF-8?q?#5562=20=E8=BD=AF=E4=BB=B6=E5=8C=85=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=BE=AE=E9=A1=B5=E9=9D=A2=E6=94=AF=E6=8C=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BAicon=EF=BC=8C=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../steedos_packages_list.page.amis.json | 36 +++++++++++-------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/services/service-package-registry/main/default/pages/steedos_packages_list.page.amis.json b/services/service-package-registry/main/default/pages/steedos_packages_list.page.amis.json index 1583ce9bb1..db77397f6d 100644 --- a/services/service-package-registry/main/default/pages/steedos_packages_list.page.amis.json +++ b/services/service-package-registry/main/default/pages/steedos_packages_list.page.amis.json @@ -22,22 +22,17 @@ "link": "/app/admin/steedos_packages/view/${_id}" }, "header": { + "avatar": "${icon}", "avatarText": "${label|split:/|last|substring:0:2|upperCase}", + "avatarClassName": "pull-left thumb-md b-3x m-r slds-icon slds-icon_container slds-icon-standard-user", "avatarTextBackground": [ - "#FFB900", - "#D83B01", - "#B50E0E", - "#E81123", - "#B4009E", - "#5C2D91", - "#0078D7", - "#00B4FF", - "#008272" + "#34becd" ], "className": "bg-white", - "title": "${label}@${version}", - "subTitle": "$description", - "description": "$_display.status" + "title": "${label}", + "subTitle": "${description}", + "subTitlePlaceholder": "--", + "description": "$_display.status${version}" }, "actions": [ { @@ -122,9 +117,20 @@ "top": "-14px", "right": "0" }, - ".antd-Crud .antd-Cards .antd-Card .antd-Card-title": { - "white-space": "break-spaces", - "word-break": "break-all" + ".antd-Crud .antd-Cards .antd-Card .antd-Card-heading .antd-Card-avtar, .antd-Crud .antd-Cards .antd-Card .antd-Card-heading .antd-Card-avtarText": { + "min-width": "50px", + "min-height": "50px", + "border-radius": "6px", + "width": "50px", + "height": "50px" + }, + ".antd-Crud .antd-Cards .antd-Card .antd-Card-meta": { + "overflow": "hidden" + }, + ".antd-Crud .antd-Cards .antd-Card .antd-Card-meta .antd-Card-subTitle": { + "-webkit-line-clamp": "1", + "max-height": "calc(var(--fontSizeBase) * var(--lineHeightBase) * 1)", + "min-height": "calc(var(--fontSizeBase) * var(--lineHeightBase) * 1)" } } } \ No newline at end of file