1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01: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 GitHub
parent 6f4584315d
commit 76cafe0a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>
);