- {priorityLevel !== PRIORITY_LEVELS.CUSTOM &&
- priorityLevel !== PRIORITY_LEVELS.DAPP_SUGGESTED &&
- !(
- priorityLevel === PRIORITY_LEVELS.HIGH &&
- editGasMode === EDIT_GAS_MODES.SWAPS
- ) &&
- !estimateGreaterThanGasUse ? (
+ {showGasEstimateCurve ? (
) : null}
{toolTipMessage && (
diff --git a/ui/components/app/edit-gas-fee-popover/edit-gas-tooltip/index.scss b/ui/components/app/edit-gas-fee-popover/edit-gas-tooltip/index.scss
index f8d55c4ec..05b8d4963 100644
--- a/ui/components/app/edit-gas-fee-popover/edit-gas-tooltip/index.scss
+++ b/ui/components/app/edit-gas-fee-popover/edit-gas-tooltip/index.scss
@@ -1,8 +1,4 @@
.edit-gas-tooltip {
- display: inline-block;
- text-align: right;
- width: 10%;
-
&__container {
display: flex;
justify-content: center;
@@ -10,6 +6,7 @@
flex-direction: column;
width: 100%;
height: 100%;
+ min-width: 160px;
img {
margin-bottom: 8px;
@@ -28,6 +25,7 @@
}
&__label {
+ white-space: nowrap;
width: 50%;
}
diff --git a/ui/components/ui/loading-heartbeat/index.js b/ui/components/ui/loading-heartbeat/index.js
index 2aed84dd2..ab69a465a 100644
--- a/ui/components/ui/loading-heartbeat/index.js
+++ b/ui/components/ui/loading-heartbeat/index.js
@@ -3,7 +3,7 @@ import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
-import { isVolatileGasEstimate } from '../../../helpers/utils/gas';
+import { isMetamaskSuggestedGasEstimate } from '../../../helpers/utils/gas';
import { getGasLoadingAnimationIsShowing } from '../../../ducks/app/app';
import { useShouldAnimateGasEstimations } from '../../../hooks/useShouldAnimateGasEstimations';
@@ -19,7 +19,7 @@ export default function LoadingHeartBeat({
if (
process.env.IN_TEST ||
- (estimateUsed && !isVolatileGasEstimate(estimateUsed))
+ (estimateUsed && !isMetamaskSuggestedGasEstimate(estimateUsed))
) {
return null;
}
diff --git a/ui/helpers/utils/gas.js b/ui/helpers/utils/gas.js
index fa4d34a4c..9b2c06e89 100644
--- a/ui/helpers/utils/gas.js
+++ b/ui/helpers/utils/gas.js
@@ -55,7 +55,7 @@ export function addTenPercentAndRound(hexStringValue) {
return addTenPercent(hexStringValue, { numberOfDecimals: 0 });
}
-export function isVolatileGasEstimate(estimate) {
+export function isMetamaskSuggestedGasEstimate(estimate) {
return [
GAS_RECOMMENDATIONS.HIGH,
GAS_RECOMMENDATIONS.MEDIUM,