mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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:
parent
c76d91dfe7
commit
0f330e21e5
@ -113,6 +113,7 @@ import { SEND_STAGES } from '../../ducks/send';
|
|||||||
import DeprecatedTestNetworks from '../../components/ui/deprecated-test-networks/deprecated-test-networks';
|
import DeprecatedTestNetworks from '../../components/ui/deprecated-test-networks/deprecated-test-networks';
|
||||||
import NewNetworkInfo from '../../components/ui/new-network-info/new-network-info';
|
import NewNetworkInfo from '../../components/ui/new-network-info/new-network-info';
|
||||||
import { ThemeType } from '../../../shared/constants/preferences';
|
import { ThemeType } from '../../../shared/constants/preferences';
|
||||||
|
import { Box } from '../../components/component-library';
|
||||||
|
|
||||||
export default class Routes extends Component {
|
export default class Routes extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
@ -561,11 +562,14 @@ export default class Routes extends Component {
|
|||||||
{accountDetailsAddress ? (
|
{accountDetailsAddress ? (
|
||||||
<AccountDetails address={accountDetailsAddress} />
|
<AccountDetails address={accountDetailsAddress} />
|
||||||
) : null}
|
) : null}
|
||||||
<div className="main-container-wrapper">
|
<Box
|
||||||
|
className="main-container-wrapper"
|
||||||
|
paddingTop={isUnlocked && [0, 4]}
|
||||||
|
>
|
||||||
{isLoading ? <Loading loadingMessage={loadMessage} /> : null}
|
{isLoading ? <Loading loadingMessage={loadMessage} /> : null}
|
||||||
{!isLoading && isNetworkLoading ? <LoadingNetwork /> : null}
|
{!isLoading && isNetworkLoading ? <LoadingNetwork /> : null}
|
||||||
{this.renderRoutes()}
|
{this.renderRoutes()}
|
||||||
</div>
|
</Box>
|
||||||
{isUnlocked ? <Alerts history={this.props.history} /> : null}
|
{isUnlocked ? <Alerts history={this.props.history} /> : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user