Skip to content

Commit

Permalink
fix: item interactive margins
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Mar 4, 2024
1 parent d3adf14 commit f532cde
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function Brc20TokenAssetItemLayout({
label="Not enough BTC in balance"
side="top"
>
<ItemInteractive onClick={onClick}>
<ItemInteractive onClick={onClick} my="space.02">
<ItemLayout
flagImg={<Brc20AvatarIcon />}
titleLeft={token.ticker}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function CryptoCurrencyAssetItemLayout({
parseCryptoCurrencyAssetBalance(assetBalance);

return (
<ItemInteractive data-testid={dataTestId} onClick={onClick}>
<ItemInteractive data-testid={dataTestId} onClick={onClick} my="space.02">
<ItemLayout
flagImg={icon}
titleLeft={title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function StacksFungibleTokenAssetItemLayout({
parseStacksFungibleTokenAssetBalance(assetBalance);

return (
<ItemInteractive data-testid={dataTestId} onClick={onClick}>
<ItemInteractive data-testid={dataTestId} onClick={onClick} my="space.02">
<ItemLayout
flagImg={
<StacksAssetAvatar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function TransactionItemLayout({
txValue,
}: TransactionItemLayoutProps) {
return (
<ItemInteractive onClick={openTxLink}>
<ItemInteractive onClick={openTxLink} my="space.02">
<ItemLayout
flagImg={txIcon && txIcon}
titleLeft={txTitle}
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/receive/components/receive-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function ReceiveItem({
}: ReceiveItemProps) {
if (!address) return null;
return (
<ItemInteractive>
<ItemInteractive my="space.02">
<ItemWithButtonsLayout
flagImg={icon}
title={title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export function SwapAssetItem({ asset, onClick }: SwapAssetItemProps) {
const fallback = getAvatarFallback(asset.name);

return (
<ItemInteractive data-testid={SwapSelectors.ChooseAssetListItem} onClick={onClick}>
<ItemInteractive
data-testid={SwapSelectors.ChooseAssetListItem}
onClick={onClick}
my="space.02"
>
<ItemLayout
flagImg={
<Avatar.Root>
Expand Down

0 comments on commit f532cde

Please sign in to comment.