From bc743ad5ef6a307b9c9f2e8ce2971b6fb8668048 Mon Sep 17 00:00:00 2001 From: OYX-1 <74037789+OYX-1@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:47:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(portal-web):=20=E5=BF=AB=E6=8D=B7=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E7=9A=84icon=E6=98=BE=E7=A4=BA=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#1189)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 测试用的图片(右边留白多一些) ![image](https://github.com/PKUHPC/SCOW/assets/74037789/628ee89d-b57b-4423-914f-17e3a4fa4c69) ## 修改之前的显示效果 ![tem1](https://github.com/PKUHPC/SCOW/assets/74037789/f8ac232d-571d-4ba4-a211-ebfb6caa03a9) ## 修改之后的显示效果 ![image](https://github.com/PKUHPC/SCOW/assets/74037789/d070d7f9-1ae9-4da2-97a3-da767e8c4e1f) --- .changeset/tasty-beers-grow.md | 5 +++++ apps/portal-web/src/pageComponents/dashboard/EntryItem.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tasty-beers-grow.md diff --git a/.changeset/tasty-beers-grow.md b/.changeset/tasty-beers-grow.md new file mode 100644 index 0000000000..ef80466383 --- /dev/null +++ b/.changeset/tasty-beers-grow.md @@ -0,0 +1,5 @@ +--- +"@scow/portal-web": patch +--- + +修复快捷方式的 icon 显示大小问题 diff --git a/apps/portal-web/src/pageComponents/dashboard/EntryItem.tsx b/apps/portal-web/src/pageComponents/dashboard/EntryItem.tsx index 179d571f26..b61017918e 100644 --- a/apps/portal-web/src/pageComponents/dashboard/EntryItem.tsx +++ b/apps/portal-web/src/pageComponents/dashboard/EntryItem.tsx @@ -30,7 +30,6 @@ const AvatarContainer = styled.div` display: flex; justify-content: center; flex: 1; - `; const NameContainer = styled.div` @@ -71,6 +70,7 @@ export const EntryItem: React.FC = ({ style, handleImageError(entryBaseName)} + style={{ maxWidth:"100px", objectFit:"contain" }} /> ) : ( icon && isSupportedIconName(icon) ?