Skip to content

Commit

Permalink
chore: Adjust style so Swap component doesn't shift (#1184)
Browse files Browse the repository at this point in the history
Co-authored-by: Alissa Crane <[email protected]>
  • Loading branch information
abcrane123 and alissacrane-cb authored Aug 29, 2024
1 parent ef6e936 commit 6dc2f5f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-islands-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/onchainkit": patch
---

- **patch**: Adjust Swap component style to prevent UI shifting. By @abcrane123 #1184
2 changes: 1 addition & 1 deletion src/swap/components/SwapAmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function SwapAmountInput({
className={cn(
background.alternate,
'box-border flex w-full flex-col items-start',
'rounded-md p-4',
'h-[148px] rounded-md p-4',
className,
)}
data-testid="ockSwapAmountInput_Container"
Expand Down
2 changes: 1 addition & 1 deletion src/swap/components/SwapMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function SwapMessage({ className }: SwapMessageReact) {

return (
<div
className={cn('flex pt-2', text.label2, className)}
className={cn('flex h-7 pt-2', text.label2, className)}
data-testid="ockSwapMessage_Message"
>
{message}
Expand Down

0 comments on commit 6dc2f5f

Please sign in to comment.