Skip to content

Commit

Permalink
No more padding shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
jordankzf committed Sep 8, 2023
1 parent 12f1815 commit b462193
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
28 changes: 22 additions & 6 deletions packages/sado-connect/src/assets/unisat-wallet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/sado-connect/src/assets/xverse-wallet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ interface WalletButtonProp {
name: string;
onConnect: () => Promise<boolean>;
icon: string;
imageClassOverride?: string;
setErrorMessage: (msg: string) => void;
}

export function WalletButton({
name,
onConnect,
icon,
imageClassOverride,
setErrorMessage,
}: WalletButtonProp) {
const [loading, setLoading] = useState(false);
Expand All @@ -35,11 +33,7 @@ export function WalletButton({
}
}}
>
<img
src={icon}
className={imageClassOverride}
alt={`Connect ${name} Wallet`}
/>
<img width={40} src={icon} alt={`Connect ${name} Wallet`} />
<span className="wallet-option-label">{name}</span>
{loading ? (
<img
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ export function SelectWalletModal({
<hr className="horizontal-separator" />
<WalletButton
name="Xverse"
imageClassOverride="xverse-icon"
onConnect={onConnectXverseWallet}
icon={XverseWalletIcon}
setErrorMessage={setErrorMessage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@
cursor: wait !important;
}

.xverse-icon {
width: 30px;
padding: 5px;
}

.wallet-identifier-container {
position: relative;
display: inline-block;
Expand All @@ -141,11 +136,10 @@
position: absolute;
bottom: 4px;
right: 0;
width: 7px;
width: 12px;
border-radius: 50%;
background-color: black;
object-fit: cover;
padding: 3px;
}

.sado-connect-wallet-modal .wallet-option-button:hover {
Expand Down

0 comments on commit b462193

Please sign in to comment.