diff --git a/.changelog/2010.trivial.md b/.changelog/2010.trivial.md new file mode 100644 index 0000000000..f98c457aea --- /dev/null +++ b/.changelog/2010.trivial.md @@ -0,0 +1 @@ +Make more transaction fields smaller diff --git a/src/app/components/AddressFormatter/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/AddressFormatter/__tests__/__snapshots__/index.test.tsx.snap index 60e6ccd724..0f9bd26f89 100644 --- a/src/app/components/AddressFormatter/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/AddressFormatter/__tests__/__snapshots__/index.test.tsx.snap @@ -29,8 +29,8 @@ exports[` should match snapshot 1`] = ` } .c3 { - font-size: 18px; - line-height: 24px; + font-size: inherit; + line-height: normal; } .c2 { diff --git a/src/app/components/AddressFormatter/index.tsx b/src/app/components/AddressFormatter/index.tsx index eacc369131..9b4fbbb9ef 100644 --- a/src/app/components/AddressFormatter/index.tsx +++ b/src/app/components/AddressFormatter/index.tsx @@ -32,8 +32,14 @@ export const AddressFormatter = (props: AddressFormatterProps) => { return ( - {name && {name}} - {trimLongString(props.address)} + {name && ( + + {name} + + )} + + {trimLongString(props.address)} + ) } diff --git a/src/app/components/Transaction/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/Transaction/__tests__/__snapshots__/index.test.tsx.snap index 35c59fc4ba..2848f61bb9 100644 --- a/src/app/components/Transaction/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/Transaction/__tests__/__snapshots__/index.test.tsx.snap @@ -230,7 +230,7 @@ exports[` should handle unknown transaction types gracefully 1`] justify-content: center; } -.c17 { +.c18 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -245,7 +245,7 @@ exports[` should handle unknown transaction types gracefully 1`] padding: 12px; } -.c18 { +.c19 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -260,7 +260,7 @@ exports[` should handle unknown transaction types gracefully 1`] padding-right: 12px; } -.c22 { +.c23 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -296,7 +296,7 @@ exports[` should handle unknown transaction types gracefully 1`] width: 12px; } -.c23 { +.c24 { box-sizing: border-box; display: -webkit-inline-box; display: -webkit-inline-flex; @@ -311,7 +311,7 @@ exports[` should handle unknown transaction types gracefully 1`] cursor: pointer; } -.c23:hover { +.c24:hover { -webkit-text-decoration: underline; text-decoration: underline; } @@ -340,11 +340,16 @@ exports[` should handle unknown transaction types gracefully 1`] } .c16 { + font-size: inherit; + line-height: normal; +} + +.c17 { font-size: 18px; line-height: 24px; } -.c19 { +.c20 { margin-bottom: 6px; font-size: 26px; line-height: 32px; @@ -352,14 +357,14 @@ exports[` should handle unknown transaction types gracefully 1`] font-weight: bold; } -.c20 { +.c21 { font-size: 12px; line-height: 18px; color: ticker; font-weight: 600; } -.c21 { +.c22 { font-size: 14px; line-height: 20px; text-align: right; @@ -367,7 +372,7 @@ exports[` should handle unknown transaction types gracefully 1`] font-weight: bold; } -.c24 { +.c25 { font-size: 14px; line-height: 20px; } @@ -451,13 +456,13 @@ exports[` should handle unknown transaction types gracefully 1`] } @media only screen and (max-width:768px) { - .c17 { + .c18 { padding: 6px; } } @media only screen and (max-width:768px) { - .c18 { + .c19 { padding-right: 6px; } } @@ -600,7 +605,7 @@ exports[` should handle unknown transaction types gracefully 1`] common.hash ff1234 @@ -611,7 +616,7 @@ exports[` should handle unknown transaction types gracefully 1`] class="c9" >
should handle unknown transaction types gracefully 1`]
should handle unknown transaction types gracefully 1`] 0.001
should handle unknown transaction types gracefully 1`] account.transaction.successful @@ -686,17 +691,17 @@ exports[` should handle unknown transaction types gracefully 1`]