Skip to content

Commit

Permalink
fix(portal-web): 快捷方式的icon显示大小问题 (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
OYX-1 authored Apr 1, 2024
1 parent abda3b2 commit bc743ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tasty-beers-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/portal-web": patch
---

修复快捷方式的 icon 显示大小问题
2 changes: 1 addition & 1 deletion apps/portal-web/src/pageComponents/dashboard/EntryItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const AvatarContainer = styled.div`
display: flex;
justify-content: center;
flex: 1;
`;

const NameContainer = styled.div`
Expand Down Expand Up @@ -71,6 +70,7 @@ export const EntryItem: React.FC<Props> = ({ style,
<img
src={join(publicConfig.PUBLIC_PATH, logoPath)}
onError={() => handleImageError(entryBaseName)}
style={{ maxWidth:"100px", objectFit:"contain" }}
/>
) : (
icon && isSupportedIconName(icon) ?
Expand Down

0 comments on commit bc743ad

Please sign in to comment.