Skip to content

Commit b292f09

Browse files
committed
fix(suite): Adjust IO dropdowns style for Coinjoin transaction window ( #13098)
1 parent 77f8577 commit b292f09

File tree

1 file changed

+6
-34
lines changed
  • packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/TxDetailModal/AdvancedTxDetails/IODetails

1 file changed

+6
-34
lines changed

packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/TxDetailModal/AdvancedTxDetails/IODetails/IODetails.tsx

+6-34
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
import { ReactElement, ReactNode } from 'react';
22
import styled, { css, useTheme } from 'styled-components';
33

4-
import {
5-
Elevation,
6-
borders,
7-
mapElevationToBackground,
8-
mapElevationToBorder,
9-
spacingsPx,
10-
typography,
11-
} from '@trezor/theme';
4+
import { Elevation, spacingsPx, spacings, typography } from '@trezor/theme';
125
import { WalletAccountTransaction } from '@suite-common/wallet-types';
136
import { formatAmount, formatNetworkAmount, isNftTokenTransfer } from '@suite-common/wallet-utils';
147
import { FormattedCryptoAmount, Translation } from 'src/components/suite';
158
import { useSelector } from 'src/hooks/suite/useSelector';
169
import { AnonymitySet, TokenTransfer } from '@trezor/blockchain-link';
17-
import { Icon, CollapsibleBox, useElevation } from '@trezor/components';
10+
import { Icon, CollapsibleBox, useElevation, Divider } from '@trezor/components';
1811
import { UtxoAnonymity } from 'src/components/wallet';
1912
import { AnalyzeInExplorerBanner } from './AnalyzeInExplorerBanner';
2013
import { FormattedNftAmount } from 'src/components/suite/FormattedNftAmount';
@@ -34,38 +27,15 @@ const Wrapper = styled.div`
3427
`;
3528

3629
const StyledCollapsibleBox = styled(CollapsibleBox)<{ $elevation: Elevation }>`
37-
background: none;
38-
box-shadow: none;
39-
border-radius: 0;
40-
margin-bottom: 0;
41-
padding-bottom: ${spacingsPx.md};
42-
text-align: left;
4330
overflow: auto;
44-
${blurFix}
45-
46-
& + & {
47-
border-top: 1px solid ${mapElevationToBorder};
48-
49-
padding-top: ${spacingsPx.md};
50-
}
5131
5232
${CollapsibleBox.Header} {
5333
padding: ${spacingsPx.md} 0;
54-
border-radius: ${borders.radii.sm};
55-
${blurFix}
56-
57-
&:hover {
58-
background-color: ${mapElevationToBackground};
59-
}
60-
}
61-
62-
${CollapsibleBox.Heading} {
63-
color: ${({ theme }) => theme.textDefault};
6434
}
6535
6636
${CollapsibleBox.Content} {
67-
padding: ${spacingsPx.xs} 0 0;
6837
border: none;
38+
padding-bottom: ${spacingsPx.md};
6939
}
7040
`;
7141

@@ -476,7 +446,8 @@ const CollapsibleIOSection = ({
476446
$elevation={elevation}
477447
heading={heading}
478448
defaultIsOpen={opened}
479-
paddingType="large"
449+
paddingType="none"
450+
fillType="none"
480451
>
481452
<IOSectionColumn
482453
tx={tx}
@@ -540,6 +511,7 @@ export const IODetails = ({ tx, isPhishingTransaction }: IODetailsProps) => {
540511
inputs={tx.details.vin?.filter(vin => vin.isAccountOwned)}
541512
outputs={tx.details.vout?.filter(vout => vout.isAccountOwned)}
542513
/>
514+
<Divider margin={{ top: spacings.xs, bottom: spacings.xxs }} />
543515
<CollapsibleIOSection
544516
heading={<Translation id="TR_OTHER_INPUTS_AND_OUTPUTS" />}
545517
tx={tx}

0 commit comments

Comments
 (0)