mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-03 21:00:55 +00:00
fix notification layout
This commit is contained in:
parent
e24574d70b
commit
ea804969cd
@ -27,14 +27,20 @@ type Props = {
|
|||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 24px 48px 9px 24px;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
color: ${props => getPrimaryColor(props.type)};
|
||||||
|
background: ${props => getSecondaryColor(props.type)};
|
||||||
|
`;
|
||||||
|
|
||||||
|
const Content = styled.div`
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1170px;
|
||||||
|
padding: 24px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: ${props => getPrimaryColor(props.type)};
|
|
||||||
background: ${props => getSecondaryColor(props.type)};
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Body = styled.div`
|
const Body = styled.div`
|
||||||
@ -42,7 +48,6 @@ const Body = styled.div`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const Message = styled.div`
|
const Message = styled.div`
|
||||||
padding-bottom: 13px;
|
|
||||||
font-size: ${FONT_SIZE.SMALL};
|
font-size: ${FONT_SIZE.SMALL};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -56,7 +61,9 @@ const CloseClick = styled.div`
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
padding: 20px 10px 0 0;
|
padding-right: inherit;
|
||||||
|
padding-top: inherit;
|
||||||
|
cursor: pointer;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledIcon = styled(Icon)`
|
const StyledIcon = styled(Icon)`
|
||||||
@ -86,7 +93,6 @@ const ActionContent = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: right;
|
justify-content: right;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
padding-bottom: 14px;
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Notification = (props: Props): React$Element<string> => {
|
const Notification = (props: Props): React$Element<string> => {
|
||||||
@ -94,6 +100,7 @@ const Notification = (props: Props): React$Element<string> => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Wrapper className={props.className} type={props.type}>
|
<Wrapper className={props.className} type={props.type}>
|
||||||
|
<Content>
|
||||||
{props.loading && <Loader size={50} /> }
|
{props.loading && <Loader size={50} /> }
|
||||||
{props.cancelable && (
|
{props.cancelable && (
|
||||||
<CloseClick onClick={() => close()}>
|
<CloseClick onClick={() => close()}>
|
||||||
@ -131,6 +138,7 @@ const Notification = (props: Props): React$Element<string> => {
|
|||||||
</ActionContent>
|
</ActionContent>
|
||||||
)}
|
)}
|
||||||
</AdditionalContent>
|
</AdditionalContent>
|
||||||
|
</Content>
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user