Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] svg not show in Safari #2657

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions wormhole-connect/src/icons/TokenIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,18 @@ const iconMap: { [key in Icon]: React.JSX.Element } = {
[Icon.NTT]: NTT(),
[Icon.SCROLL]: SCROLL(),
[Icon.BLAST]: BLAST(),
[Icon.XLAYER]: <img src={chainToIcon('Xlayer')} />,
[Icon.MANTLE]: <img src={chainToIcon('Mantle')} />,
[Icon.XLAYER]: (
<img
style={{ maxHeight: '100%', maxWidth: '100%' }}
src={chainToIcon('Xlayer')}
/>
),
[Icon.MANTLE]: (
<img
style={{ maxHeight: '100%', maxWidth: '100%' }}
src={chainToIcon('Mantle')}
/>
),
};

function isBuiltinIcon(icon?: Icon | string): icon is Icon {
Expand Down
2 changes: 2 additions & 0 deletions wormhole-connect/src/icons/Tokens/ARBITRUM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ function ARBITRUM() {
return (
<svg
style={{ maxHeight: '100%', maxWidth: '100%' }}
width="470.29"
height="514.25"
viewBox="0 0 470.29 514.25"
fill="none"
xmlns="http://www.w3.org/2000/svg"
Expand Down
2 changes: 2 additions & 0 deletions wormhole-connect/src/icons/Tokens/ETH.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ function ETH() {
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="182"
width="182"
viewBox="0 0 182 182"
style={{ maxHeight: '100%', maxWidth: '100%' }}
>
Expand Down
Loading