mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-14 10:38:16 +00:00
Merge pull request #315 from trezor/fix/huge-fee-overflow
Fix fee label overflow
This commit is contained in:
commit
5416baa358
@ -87,6 +87,20 @@ const FeeOptionWrapper = styled.div`
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const OptionValue = styled(P)`
|
||||||
|
flex: 1 0 auto;
|
||||||
|
min-width: 70px;
|
||||||
|
margin-right: 5px;
|
||||||
|
`;
|
||||||
|
|
||||||
|
const OptionLabel = styled(P)`
|
||||||
|
flex: 0 1 auto;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
text-align: right;
|
||||||
|
word-break: break-all;
|
||||||
|
`;
|
||||||
|
|
||||||
const FeeLabelWrapper = styled.div`
|
const FeeLabelWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -348,8 +362,8 @@ const AccountSend = (props: Props) => {
|
|||||||
options={feeLevels}
|
options={feeLevels}
|
||||||
formatOptionLabel={option => (
|
formatOptionLabel={option => (
|
||||||
<FeeOptionWrapper>
|
<FeeOptionWrapper>
|
||||||
<P>{option.value}</P>
|
<OptionValue>{option.value}</OptionValue>
|
||||||
<P>{option.label}</P>
|
<OptionLabel>{option.label}</OptionLabel>
|
||||||
</FeeOptionWrapper>
|
</FeeOptionWrapper>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
@ -74,6 +74,20 @@ const FeeOptionWrapper = styled.div`
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const OptionValue = styled(P)`
|
||||||
|
flex: 1 0 auto;
|
||||||
|
min-width: 70px;
|
||||||
|
margin-right: 5px;
|
||||||
|
`;
|
||||||
|
|
||||||
|
const OptionLabel = styled(P)`
|
||||||
|
flex: 0 1 auto;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
text-align: right;
|
||||||
|
word-break: break-all;
|
||||||
|
`;
|
||||||
|
|
||||||
const FeeLabelWrapper = styled.div`
|
const FeeLabelWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -302,8 +316,8 @@ const AccountSend = (props: Props) => {
|
|||||||
options={feeLevels}
|
options={feeLevels}
|
||||||
formatOptionLabel={option => (
|
formatOptionLabel={option => (
|
||||||
<FeeOptionWrapper>
|
<FeeOptionWrapper>
|
||||||
<P>{option.value}</P>
|
<OptionValue>{option.value}</OptionValue>
|
||||||
<P>{option.label}</P>
|
<OptionLabel>{option.label}</OptionLabel>
|
||||||
</FeeOptionWrapper>
|
</FeeOptionWrapper>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user