Skip to content

Commit fd50231

Browse files
MiroslavProchazkakomret
authored andcommitted
fix(suite): fix padding in add custom be button
1 parent ce41c4d commit fd50231

File tree

1 file changed

+5
-21
lines changed
  • packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/AdvancedCoinSettingsModal/CustomBackends

1 file changed

+5
-21
lines changed

packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/AdvancedCoinSettingsModal/CustomBackends/CustomBackends.tsx

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState } from 'react';
22

33
import styled from 'styled-components';
44

5-
import { Input, Button, H3, CollapsibleBox } from '@trezor/components';
5+
import { Input, Button, H3, CollapsibleBox, Column } from '@trezor/components';
66
import { Network } from '@suite-common/wallet-config';
77
import { spacings } from '@trezor/theme';
88

@@ -17,20 +17,9 @@ import { BackendInput } from './BackendInput';
1717
import { BackendTypeSelect } from './BackendTypeSelect';
1818
import { TorModal, TorResult } from './TorModal';
1919

20-
const Wrapper = styled.div`
21-
display: flex;
22-
flex-direction: column;
23-
text-align: left;
24-
25-
> * + * {
26-
margin-top: 8px;
27-
}
28-
`;
29-
3020
// eslint-disable-next-line local-rules/no-override-ds-component
3121
const AddUrlButton = styled(Button)`
3222
align-self: end;
33-
margin-top: 0;
3423
`;
3524

3625
// eslint-disable-next-line local-rules/no-override-ds-component
@@ -41,11 +30,6 @@ const Heading = styled(H3)`
4130
margin-bottom: 6px;
4231
`;
4332

44-
const TooltipContent = styled.div`
45-
display: flex;
46-
flex-direction: column;
47-
`;
48-
4933
// eslint-disable-next-line local-rules/no-override-ds-component
5034
const SaveButton = styled(Button)`
5135
width: 200px;
@@ -111,12 +95,12 @@ export const CustomBackends = ({ network, onCancel }: CustomBackendsProps) => {
11195

11296
return (
11397
<>
114-
<Wrapper>
98+
<Column gap={spacings.sm}>
11599
<Heading>
116100
<Translation id="TR_BACKENDS" />
117101
<TooltipSymbol
118102
content={
119-
<TooltipContent>
103+
<Column>
120104
<Translation
121105
id={
122106
network?.networkType === 'cardano'
@@ -130,7 +114,7 @@ export const CustomBackends = ({ network, onCancel }: CustomBackendsProps) => {
130114
value: defaultUrls.join(', ') ?? '',
131115
}}
132116
/>
133-
</TooltipContent>
117+
</Column>
134118
}
135119
/>
136120
</Heading>
@@ -189,7 +173,7 @@ export const CustomBackends = ({ network, onCancel }: CustomBackendsProps) => {
189173
>
190174
<Translation id="TR_CONFIRM" />
191175
</SaveButton>
192-
</Wrapper>
176+
</Column>
193177

194178
{torModalOpen && <TorModal onResult={onTorResult} />}
195179
</>

0 commit comments

Comments
 (0)