Skip to content

Commit d7e6143

Browse files
committed
fix: Center buttons in wider popup
1 parent 78b82e8 commit d7e6143

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ui/components/app/wallet-overview/coin-buttons.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import { AssetType } from '../../../../shared/constants/transaction';
5656
import { MetaMetricsContext } from '../../../contexts/metametrics';
5757
import { startNewDraftTransaction } from '../../../ducks/send';
5858
import {
59+
BlockSize,
5960
Display,
6061
IconColor,
6162
JustifyContent,
@@ -359,7 +360,11 @@ const CoinButtons = ({
359360
]);
360361

361362
return (
362-
<Box display={Display.Flex} justifyContent={JustifyContent.spaceEvenly}>
363+
<Box
364+
display={Display.Flex}
365+
justifyContent={JustifyContent.spaceEvenly}
366+
width={BlockSize.Full}
367+
>
363368
{
364369
///: BEGIN:ONLY_INCLUDE_IF(build-main,build-beta,build-flask)
365370
<IconButton

ui/components/app/wallet-overview/index.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
height: 100%;
3737
margin-bottom: 16px;
3838
padding: 0 16px;
39+
width: 100%;
40+
41+
.wallet-overview-fullscreen > & {
42+
width: auto;
43+
}
3944
}
4045

4146
&__currency-wrapper {

0 commit comments

Comments
 (0)