Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: item interactive margins #5014

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading