1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

added extra margin for unlocked state in full view in header (#19701)

Co-authored-by: Danica Shen <zhaodanica@gmail.com>
This commit is contained in:
Nidhi Kumari 2023-06-21 19:32:25 +05:30 committed by Dan J Miller
parent c76d91dfe7
commit 0f330e21e5

View File

@ -113,6 +113,7 @@ import { SEND_STAGES } from '../../ducks/send';
import DeprecatedTestNetworks from '../../components/ui/deprecated-test-networks/deprecated-test-networks';
import NewNetworkInfo from '../../components/ui/new-network-info/new-network-info';
import { ThemeType } from '../../../shared/constants/preferences';
import { Box } from '../../components/component-library';
export default class Routes extends Component {
static propTypes = {
@ -561,11 +562,14 @@ export default class Routes extends Component {
{accountDetailsAddress ? (
<AccountDetails address={accountDetailsAddress} />
) : null}
<div className="main-container-wrapper">
<Box
className="main-container-wrapper"
paddingTop={isUnlocked && [0, 4]}
>
{isLoading ? <Loading loadingMessage={loadMessage} /> : null}
{!isLoading && isNetworkLoading ? <LoadingNetwork /> : null}
{this.renderRoutes()}
</div>
</Box>
{isUnlocked ? <Alerts history={this.props.history} /> : null}
</div>
);