Skip to content

Commit 4a440dc

Browse files
committed
Fix image size
1 parent 7480539 commit 4a440dc

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"scripts": {
55
"build": "rollup -c",
66
"dev": "rollup -c -w",

packages/core/src/views/connect/Sidebar.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@
105105
var(--onboard-primary-600, var(--primary-600))
106106
);
107107
}
108+
109+
img {
110+
max-width: 100%;
111+
height: auto;
112+
}
108113
</style>
109114

110115
<div class="sidebar">
@@ -114,7 +119,7 @@
114119
{#if isSVG(logo || icon)}
115120
{@html logo || icon}
116121
{:else}
117-
<img height="100%" src={logo || icon} alt="logo" />
122+
<img src={logo || icon} alt="logo" />
118123
{/if}
119124
{:else}
120125
{@html blocknative}

packages/core/src/views/shared/WalletAppBadge.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@
120120
.spinner-container {
121121
color: var(--onboard-primary-300, var(--primary-300));
122122
}
123+
124+
img {
125+
max-width: 100%;
126+
height: auto;
127+
}
123128
</style>
124129

125130
<div
@@ -155,7 +160,7 @@
155160
{@html iconLoaded}
156161
{:else}
157162
<!-- load img url -->
158-
<img height="100%" src={iconLoaded} alt="logo" />
163+
<img src={iconLoaded} alt="logo" />
159164
{/if}
160165
</div>
161166
{/await}

packages/demo/src/blocknative-logo.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)