Skip to content

Commit b462193

Browse files
committed
No more padding shenanigans
1 parent 12f1815 commit b462193

File tree

5 files changed

+27
-24
lines changed

5 files changed

+27
-24
lines changed

packages/sado-connect/src/assets/unisat-wallet.svg

+22-6
Loading
Loading

packages/sado-connect/src/components/SelectWalletModal/WalletButton.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ interface WalletButtonProp {
66
name: string;
77
onConnect: () => Promise<boolean>;
88
icon: string;
9-
imageClassOverride?: string;
109
setErrorMessage: (msg: string) => void;
1110
}
1211

1312
export function WalletButton({
1413
name,
1514
onConnect,
1615
icon,
17-
imageClassOverride,
1816
setErrorMessage,
1917
}: WalletButtonProp) {
2018
const [loading, setLoading] = useState(false);
@@ -35,11 +33,7 @@ export function WalletButton({
3533
}
3634
}}
3735
>
38-
<img
39-
src={icon}
40-
className={imageClassOverride}
41-
alt={`Connect ${name} Wallet`}
42-
/>
36+
<img width={40} src={icon} alt={`Connect ${name} Wallet`} />
4337
<span className="wallet-option-label">{name}</span>
4438
{loading ? (
4539
<img

packages/sado-connect/src/components/SelectWalletModal/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ export function SelectWalletModal({
197197
<hr className="horizontal-separator" />
198198
<WalletButton
199199
name="Xverse"
200-
imageClassOverride="xverse-icon"
201200
onConnect={onConnectXverseWallet}
202201
icon={XverseWalletIcon}
203202
setErrorMessage={setErrorMessage}

packages/sado-connect/src/components/SelectWalletModal/style.css

+1-7
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@
127127
cursor: wait !important;
128128
}
129129

130-
.xverse-icon {
131-
width: 30px;
132-
padding: 5px;
133-
}
134-
135130
.wallet-identifier-container {
136131
position: relative;
137132
display: inline-block;
@@ -141,11 +136,10 @@
141136
position: absolute;
142137
bottom: 4px;
143138
right: 0;
144-
width: 7px;
139+
width: 12px;
145140
border-radius: 50%;
146141
background-color: black;
147142
object-fit: cover;
148-
padding: 3px;
149143
}
150144

151145
.sado-connect-wallet-modal .wallet-option-button:hover {

0 commit comments

Comments
 (0)