mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 12:56:01 +01:00
f8f4397339
When the gas API is down, the logic we use will no longer compute all of the data that the gas API returns in order to reduce the burden on Infura. Specifically, only estimated fees for different priority levels, as well as the latest base fee, will be available; all other data points, such as the latest and historical priority fee range and network stability, will be missing. This commit updates the frontend logic to account for this lack of data by merely hiding the relevant pieces of the UI that would otherwise be shown.
42 lines
731 B
SCSS
42 lines
731 B
SCSS
.network-statistics {
|
|
margin: 24px 12px 12px;
|
|
|
|
&__info {
|
|
border-top: 1px solid var(--ui-2);
|
|
border-bottom: 1px solid var(--ui-2);
|
|
height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
&__field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1;
|
|
|
|
&:not(:last-child) {
|
|
border-right: 1px solid var(--ui-2);
|
|
}
|
|
}
|
|
|
|
&__field-data {
|
|
color: var(--color-text-alternative);
|
|
font-size: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
&__field-label {
|
|
color: var(--color-text-default);
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
&__tooltip-label {
|
|
font-weight: 700;
|
|
}
|
|
}
|