Skip to content

Commit

Permalink
chore: Fix svg render (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer authored Aug 8, 2024
1 parent 30fe3ae commit c14ca17
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-poems-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/onchainkit": patch
---

-**chore**: Fix svg render. By @cpcramer #1011
6 changes: 3 additions & 3 deletions src/internal/svg/baseNameSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export const baseNameSvg = (
data-testid="ockbaseNameSvg"
role="img"
aria-label="ock-base-name"
width="16"
height="16"
viewBox="0 0 16 16"
width="100%"
height="100%"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
fill="none"
className="h-full w-full"
Expand Down
6 changes: 3 additions & 3 deletions src/internal/svg/disconnectSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export const disconnectSvg = (
<svg
role="img"
aria-label="ock-disconnect-svg"
width="16"
height="16"
viewBox="0 0 16 16"
width="100%"
height="100%"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
Expand Down
6 changes: 3 additions & 3 deletions src/internal/svg/walletSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export const walletSvg = (
<svg
role="img"
aria-label="ock-wallet-svg"
width="16"
height="16"
viewBox="0 0 16 16"
width="100%"
height="100%"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/components/WalletDropdownBaseName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function WalletDropdownBaseName({
target="_blank"
rel="noopener noreferrer"
>
<div className="-translate-y-1/2 absolute top-1/2 left-4 flex h-5 w-5 items-center justify-center">
<div className="-translate-y-1/2 absolute top-1/2 left-4 flex h-4 w-4 items-center justify-center">
{baseNameSvg}
</div>
<div className="flex w-full items-center pl-6">
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/components/WalletDropdownDisconnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function WalletDropdownDisconnect({
)}
onClick={handleDisconnect}
>
<div className="-translate-y-1/2 absolute top-1/2 left-4 flex h-5 w-5 items-center justify-center">
<div className="-translate-y-1/2 absolute top-1/2 left-4 flex h-4 w-4 items-center justify-center">
{disconnectSvg}
</div>
<span className={cn(dsText.body, 'pl-6')}>{text}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/components/WalletDropdownLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function WalletDropdownLink({
target={target}
rel={rel}
>
<div className="-translate-y-1/2 absolute top-1/2 left-4 flex h-5 w-5 items-center justify-center">
<div className="-translate-y-1/2 absolute top-1/2 left-4 flex h-4 w-4 items-center justify-center">
{iconSvg}
</div>
<span className={cn(text.body, 'pl-6')}>{children}</span>
Expand Down

0 comments on commit c14ca17

Please sign in to comment.