Skip to content

Commit 89641b2

Browse files
committed
added padding to views with FilterButton for Guard component
1 parent c913967 commit 89641b2

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

packages/wallet-widget/src/components/Filter/FilterButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export const FilterButton = ({ label, type }: { label: string; type: 'tokens' |
2222

2323
return (
2424
<div
25-
className={cn(cardVariants({ clickable: true }), 'flex items-center justify-center p-2 relative overflow-visible')}
25+
className={cn(cardVariants({ clickable: true }), 'flex items-center justify-center relative overflow-visible')}
2626
style={{ height: '52px', width: '52px' }}
2727
onClick={() => setIsOpen(true)}
2828
>
2929
<FilterIcon size="sm" color="white" />
30-
<div className="absolute" style={{ top: '-4px', right: '-4px' }}>
30+
<div className="absolute" style={{ top: '-5px', right: '-10px' }}>
3131
{howManyModifiedFilters > 0 && (
3232
<div className="flex items-center justify-center w-6 h-6 rounded-full" style={{ backgroundColor: '#0076CC' }}>
3333
<Text variant="small" color="white">

packages/wallet-widget/src/components/IconWrappers/MediaIconWrapper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ export const MediaIconWrapper = ({
8181
</div>
8282
) : (
8383
<div
84-
className={`flex items-center justify-center ${shapeClass} border overflow-hidden bg-background-primary`}
84+
className={`flex items-center justify-center ${shapeClass} border overflow-hidden`}
8585
style={{
8686
width: `calc(${widthClassMap[size]} + 2px)`,
8787
height: `calc(${widthClassMap[size]} + 2px)`
8888
}}
8989
>
90-
<img src={icon} alt="icon" style={{ backgroundColor: 'lightgray' }} />
90+
<img src={icon} alt="icon" />
9191
</div>
9292
)}
9393
</>

packages/wallet-widget/src/views/History.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const History = () => {
128128
}, [search, fuse])
129129

130130
return (
131-
<div className="flex flex-col gap-3 px-4 pb-4">
131+
<div className="flex flex-col gap-3 p-4 pt-2">
132132
<div className="flex flex-row justify-between items-center w-full gap-2">
133133
<div className="grow">
134134
<TextInput

packages/wallet-widget/src/views/Search/SearchCollectibles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const SearchCollectibles = () => {
3838
}
3939

4040
return (
41-
<div className="px-4 pb-4 w-full">
41+
<div className="p-4 pt-2 w-full">
4242
<CollectiblesList
4343
tokenBalancesData={tokenBalancesData}
4444
isPendingTokenBalances={isPendingTokenBalances}

packages/wallet-widget/src/views/Search/SearchTokens.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const SearchTokens = () => {
3434
}
3535

3636
return (
37-
<div className="px-4 pb-4 w-full">
37+
<div className="p-4 pt-2 w-full">
3838
<TokenList
3939
tokenBalancesData={tokenBalancesData}
4040
isPendingTokenBalances={isPendingTokenBalances}

0 commit comments

Comments
 (0)