Skip to content

Commit

Permalink
fix: don't cut off DApp icon (#2594)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook authored Oct 5, 2023
1 parent 3dd0f46 commit c53310e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/safe-apps/SafeAppIconCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const APP_LOGO_FALLBACK_IMAGE = `/images/apps/app-placeholder.svg`

const getIframeContent = (url: string, width: number, height: number, fallback: string): string => {
return `
<body style="margin: 0; overflow: hidden;">
<body style="margin: 0; overflow: hidden; display: flex;">
<img src="${encodeURI(url)}" alt="Safe App logo" width="${width}" height="${height}" />
<script>
document.querySelector('img').onerror = (e) => {
Expand Down

0 comments on commit c53310e

Please sign in to comment.